Trait SyncStateProvider
pub trait SyncStateProvider: Send + Sync {
// Required methods
fn is_syncing(&self) -> bool;
fn is_initially_syncing(&self) -> bool;
}
Available on crate feature
network
only.Expand description
A type that provides information about whether the node is currently syncing and the network is currently serving syncing related requests.
Required Methods§
fn is_syncing(&self) -> bool
fn is_syncing(&self) -> bool
Returns true
if the network is undergoing sync.
fn is_initially_syncing(&self) -> bool
fn is_initially_syncing(&self) -> bool
Returns true
if the network is undergoing an initial (pipeline) sync.