Struct common_types::chain_notify::NewBlocks[][src]

pub struct NewBlocks {
    pub imported: Vec<H256>,
    pub invalid: Vec<H256>,
    pub route: ChainRoute,
    pub sealed: Vec<H256>,
    pub proposed: Vec<Bytes>,
    pub duration: Duration,
    pub has_more_blocks_to_import: bool,
}

Used by ChainNotify new_blocks() and contains information about new blocks imported to the chain.

Fields

imported: Vec<H256>

Imported blocks

invalid: Vec<H256>

Invalid blocks

route: ChainRoute

Route

sealed: Vec<H256>

Sealed

proposed: Vec<Bytes>

Block bytes.

duration: Duration

Duration

has_more_blocks_to_import: bool

Has more blocks to import

Implementations

impl NewBlocks[src]

pub fn new(
    imported: Vec<H256>,
    invalid: Vec<H256>,
    route: ChainRoute,
    sealed: Vec<H256>,
    proposed: Vec<Bytes>,
    duration: Duration,
    has_more_blocks_to_import: bool
) -> NewBlocks
[src]

Constructor

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> Same<T> for T

type Output = T

Should always be Self

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>,