pub struct Informant<T> {
    last_tick: RwLock<Instant>,
    with_color: bool,
    target: T,
    snapshot: Option<Arc<SnapshotService>>,
    rpc_stats: Option<Arc<RpcStats>>,
    last_import: Mutex<Instant>,
    skipped: AtomicUsize,
    skipped_txs: AtomicUsize,
    in_shutdown: AtomicBool,
    last_report: Mutex<ClientReport>,
}

Fields

last_tick: RwLock<Instant>with_color: booltarget: Tsnapshot: Option<Arc<SnapshotService>>rpc_stats: Option<Arc<RpcStats>>last_import: Mutex<Instant>skipped: AtomicUsizeskipped_txs: AtomicUsizein_shutdown: AtomicBoollast_report: Mutex<ClientReport>

Implementations

Make a new instance potentially with_color output.

Signal that we’re shutting down; no more output necessary.

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

Initialize the handler

Timer function called after a timeout created with HandlerIo::timeout.

Called when a broadcasted message is received. The message can only be sent from a different IO handler.

Called when an IO stream gets closed

Called when an IO stream can be read from

Called when an IO stream can be written to

Register a new stream with the event loop

Re-register a stream with the event loop

Deregister a stream. Called whenstream is removed from event loop

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.