pub struct Watcher { /* private fields */ }
Expand description

A ChainNotify implementation which will trigger a snapshot event at certain block numbers.

Implementations

Create a new Watcher which will trigger a snapshot event once every period blocks, but only after that block is history blocks old.

Trait Implementations

fires when chain has new blocks.

fires when chain achieves active mode

fires when chain achieves passive mode

fires when chain broadcasts a message

fires when new block is about to be imported implementations should be light Read more

fires when new transactions are received from a peer

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.