pub enum SyncState {
Idle,
HeaderSync,
BlockSync,
Synced,
}Expand description
Current state of the blockchain sync process.
Variants§
Idle
Initial state — no peers connected.
HeaderSync
Downloading headers from peers (IBD phase 1).
BlockSync
Downloading blocks for validated headers (IBD phase 2).
Synced
Fully synced — processing new blocks as they arrive.
Trait Implementations§
impl Copy for SyncState
impl Eq for SyncState
impl StructuralPartialEq for SyncState
Auto Trait Implementations§
impl Freeze for SyncState
impl RefUnwindSafe for SyncState
impl Send for SyncState
impl Sync for SyncState
impl Unpin for SyncState
impl UnsafeUnpin for SyncState
impl UnwindSafe for SyncState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more