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§
Sourcefn target_block_number(&self) -> BlockNumber
fn target_block_number(&self) -> BlockNumber
The block number that the sync process is targeting right now.
Can be zero if not syncing actively.
Sourcefn is_syncing(&self) -> bool
fn is_syncing(&self) -> bool
Returns true if the chain is currently syncing
Sourcefn is_offline(&self) -> bool
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".