[][src]Struct nimiq_blockchain::chain_info::ChainInfo

pub struct ChainInfo {
    pub head: Block,
    pub total_difficulty: Difficulty,
    pub total_work: Difficulty,
    pub super_block_counts: SuperBlockCounts,
    pub on_main_chain: bool,
    pub main_chain_successor: Option<Blake2bHash>,
}

Fields

head: Blocktotal_difficulty: Difficultytotal_work: Difficultysuper_block_counts: SuperBlockCountson_main_chain: boolmain_chain_successor: Option<Blake2bHash>

Methods

impl ChainInfo[src]

pub fn initial(block: Block) -> Self[src]

pub fn next(&self, block: Block) -> Self[src]

pub fn prev(&self, block: Block) -> Self[src]

Trait Implementations

impl Clone for ChainInfo[src]

impl Default for ChainInfo[src]

impl Eq for ChainInfo[src]

impl PartialEq<ChainInfo> for ChainInfo[src]

impl Debug for ChainInfo[src]

impl StructuralPartialEq for ChainInfo[src]

impl StructuralEq for ChainInfo[src]

impl Deserialize for ChainInfo[src]

impl FromDatabaseValue for ChainInfo[src]

impl IntoDatabaseValue for ChainInfo[src]

impl Serialize for ChainInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Send + Sync + Clone

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default