Trait ChainSyncStatus

Source
pub trait ChainSyncStatus:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn target_block_number(&self) -> BlockNumber;
    fn is_syncing(&self) -> bool;
    fn is_offline(&self) -> bool;
}
Expand description

Chain sync status

Required Methods§

Source

fn target_block_number(&self) -> BlockNumber

Block number that the sync process is targeting right now.

Can be zero if not syncing actively.

Source

fn is_syncing(&self) -> bool

Returns true if the chain is currently syncing

Source

fn is_offline(&self) -> bool

Returns true if the node is currently offline

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§