pub enum SyncState {
Syncing(SyncInfo),
NotSyncing,
}Expand description
The current state of blockchain syncing operations.
Variants
Syncing(SyncInfo)
Blockchain is syncing.
NotSyncing
Blockchain is not syncing.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for SyncState
impl<'de> Deserialize<'de> for SyncState
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SyncState
Auto Trait Implementations
impl RefUnwindSafe for SyncState
impl Send for SyncState
impl Sync for SyncState
impl Unpin for SyncState
impl UnwindSafe for SyncState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more