Enum solana_runtime::epoch_accounts_hash::manager::State
source · enum State {
Invalid,
InFlight(Slot),
Valid(EpochAccountsHash, Slot),
}
Expand description
The EpochAccountsHash is calculated in the background via AccountsBackgroundService. This enum is used to track the state of that calculation, and queried when saving the EAH into a Bank or Snapshot.
Variants§
Invalid
The initial state of the EAH. This can occur when loading from a snapshot that does not include an EAH, or when starting from genesis (before an EAH calculation is requested).
InFlight(Slot)
An EAH calculation has been requested (for Slot
) and is in flight. The Bank that should
save the EAH must wait until the calculation has completed.
Valid(EpochAccountsHash, Slot)
The EAH calculation is complete (for Slot
) and the EAH value is valid to read/use.
Trait Implementations§
source§impl PartialEq<State> for State
impl PartialEq<State> for State
impl Copy for State
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.