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

Returns true if the network is undergoing sync.

fn is_initially_syncing(&self) -> bool

Returns true if the network is undergoing an initial (pipeline) sync.

Implementations on Foreign Types§

§

impl<'a, T> SyncStateProvider for &'a T
where T: 'a + SyncStateProvider + ?Sized, &'a T: Send + Sync,

§

fn is_syncing(&self) -> bool

§

fn is_initially_syncing(&self) -> bool

§

impl<T> SyncStateProvider for Box<T>
where T: SyncStateProvider + ?Sized, Box<T>: Send + Sync,

§

fn is_syncing(&self) -> bool

§

fn is_initially_syncing(&self) -> bool

§

impl<T> SyncStateProvider for Arc<T>
where T: SyncStateProvider + ?Sized, Arc<T>: Send + Sync,

§

fn is_syncing(&self) -> bool

§

fn is_initially_syncing(&self) -> bool

Implementors§