Enum common_types::io_message::ClientIoMessage[][src]

pub enum ClientIoMessage<C> {
    NewChainHead,
    BlockVerified,
    BeginRestoration(ManifestData),
    FeedStateChunk(H256, Bytes),
    FeedBlockChunk(H256, Bytes),
    TakeSnapshot(u64),
    Execute(Callback<C>),
}

Message type for external and internal events

Variants

NewChainHead

Best Block Hash in chain has been changed

BlockVerified

A block is ready

BeginRestoration(ManifestData)

Begin snapshot restoration

FeedStateChunk(H256, Bytes)

Feed a state chunk to the snapshot service

FeedBlockChunk(H256, Bytes)

Feed a block chunk to the snapshot service

TakeSnapshot(u64)

Take a snapshot for the block with given number.

Execute(Callback<C>)

Execute wrapped closure

Implementations

impl<C> ClientIoMessage<C>[src]

pub fn execute<F: Fn(&C) + Send + Sync + 'static>(fun: F) -> Self[src]

Create new ClientIoMessage that executes given procedure.

Trait Implementations

impl<C: Debug> Debug for ClientIoMessage<C>[src]

Auto Trait Implementations

impl<C> !RefUnwindSafe for ClientIoMessage<C>

impl<C> Send for ClientIoMessage<C>

impl<C> Sync for ClientIoMessage<C>

impl<C> Unpin for ClientIoMessage<C>

impl<C> !UnwindSafe for ClientIoMessage<C>

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