Enum diem_types::trusted_state::TrustedStateChange [−][src]
pub enum TrustedStateChange<'a> {
Version {
new_state: TrustedState,
},
Epoch {
new_state: TrustedState,
latest_epoch_change_li: &'a LedgerInfoWithSignatures,
},
NoChange,
}
Expand description
TrustedStateChange
is the result of attempting to ratchet to a new trusted
state. In order to reduce redundant error checking, TrustedStateChange
also
contains references to relevant items used to ratchet us.
Variants
We have a newer TrustedState
but it’s still in the same epoch, so only
the latest trusted version changed.
Fields of Version
new_state: TrustedState
We have a newer TrustedState
and there was at least one epoch change,
so we have a newer trusted version and a newer trusted validator set.
Fields of Epoch
new_state: TrustedState
latest_epoch_change_li: &'a LedgerInfoWithSignatures
The latest ledger info is at the same version as the trusted state and matches the hash.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrustedStateChange<'a>
impl<'a> Send for TrustedStateChange<'a>
impl<'a> Sync for TrustedStateChange<'a>
impl<'a> Unpin for TrustedStateChange<'a>
impl<'a> UnwindSafe for TrustedStateChange<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more