Enum ethcore::client::ClientIoMessage
[−]
[src]
pub enum ClientIoMessage { NewChainHead, BlockVerified, BeginRestoration(ManifestData), FeedStateChunk(H256, Bytes), FeedBlockChunk(H256, Bytes), TakeSnapshot(u64), Execute(Callback), }
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)
Execute wrapped closure
Methods
impl ClientIoMessage
[src]
impl ClientIoMessage
pub fn execute<F: Fn(&Client) + Send + Sync + 'static>(fun: F) -> Self
[src]
pub fn execute<F: Fn(&Client) + Send + Sync + 'static>(fun: F) -> Self
Create new ClientIoMessage
that executes given procedure.
Trait Implementations
impl Debug for ClientIoMessage
[src]
impl Debug for ClientIoMessage
Auto Trait Implementations
impl Send for ClientIoMessage
impl Send for ClientIoMessage
impl Sync for ClientIoMessage
impl Sync for ClientIoMessage