Struct common_types::header::ExtendedHeader[][src]

pub struct ExtendedHeader {
    pub header: Header,
    pub is_finalized: bool,
    pub parent_total_difficulty: U256,
}

Extended block header, wrapping Header with finalized and total difficulty information.

Fields

header: Header

The actual header.

is_finalized: bool

Whether the block underlying this header is considered finalized.

parent_total_difficulty: U256

The parent block difficulty.

Implementations

impl ExtendedHeader[src]

pub fn total_score(&self) -> U256[src]

Returns combined difficulty of all ancestors together with the difficulty of this header.

Trait Implementations

impl Clone for ExtendedHeader[src]

impl Debug for ExtendedHeader[src]

impl Eq for ExtendedHeader[src]

impl PartialEq<ExtendedHeader> for ExtendedHeader[src]

impl StructuralEq for ExtendedHeader[src]

impl StructuralPartialEq for ExtendedHeader[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,