pub enum ClientIoMessage {
    NewChainHead,
    BlockVerified,
    BeginRestoration(ManifestData),
    FeedStateChunk(H256Bytes),
    FeedBlockChunk(H256Bytes),
    TakeSnapshot(u64),
    Execute(Callback),
}
Expand description

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(H256Bytes)

Feed a state chunk to the snapshot service

FeedBlockChunk(H256Bytes)

Feed a block chunk to the snapshot service

TakeSnapshot(u64)

Take a snapshot for the block with given number.

Execute(Callback)

Execute wrapped closure

Implementations

Create new ClientIoMessage that executes given procedure.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.