[][src]Struct storage_interface::StartupInfo

pub struct StartupInfo {
    pub latest_ledger_info: LedgerInfoWithSignatures,
    pub latest_epoch_state: Option<EpochState>,
    pub committed_tree_state: TreeState,
    pub synced_tree_state: Option<TreeState>,


latest_ledger_info: LedgerInfoWithSignatures

The latest ledger info.

latest_epoch_state: Option<EpochState>

If the above ledger info doesn't carry a validator set, the latest validator set. Otherwise None.

committed_tree_state: TreeStatesynced_tree_state: Option<TreeState>


impl StartupInfo[src]

pub fn new(
    latest_ledger_info: LedgerInfoWithSignatures,
    latest_epoch_state: Option<EpochState>,
    committed_tree_state: TreeState,
    synced_tree_state: Option<TreeState>
) -> Self

pub fn new_for_testing() -> Self[src]

pub fn get_epoch_state(&self) -> &EpochState[src]

Trait Implementations

impl Clone for StartupInfo[src]

impl Debug for StartupInfo[src]

impl<'de> Deserialize<'de> for StartupInfo[src]

impl Eq for StartupInfo[src]

impl PartialEq<StartupInfo> for StartupInfo[src]

impl Serialize for StartupInfo[src]

impl StructuralEq for StartupInfo[src]

impl StructuralPartialEq for StartupInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for StartupInfo

impl Send for StartupInfo

impl Sync for StartupInfo

impl Unpin for StartupInfo

impl UnwindSafe for StartupInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,