pub enum SynchronizerState {
Started,
Ready(BlockHeader),
Delayed(BlockHeader),
Stale(BlockHeader),
Advanced(BlockHeader),
Ended(String),
}Variants§
Started
Initial state, assigned before trying to receive any message
Ready(BlockHeader)
The synchronizer emitted a message for the block as expected
Delayed(BlockHeader)
The synchronizer is on a previous block compared to others and is expected to catch up soon.
Stale(BlockHeader)
The synchronizer hasn’t emitted messages for > max_missed_blocks or has
fallen far behind. At this point we do not wait for it anymore but it can
still eventually recover.
Advanced(BlockHeader)
The synchronizer is on future not connected block.
Ended(String)
The synchronizer ended with an error.
Trait Implementations§
Source§impl Clone for SynchronizerState
impl Clone for SynchronizerState
Source§fn clone(&self) -> SynchronizerState
fn clone(&self) -> SynchronizerState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SynchronizerState
impl Debug for SynchronizerState
Source§impl<'de> Deserialize<'de> for SynchronizerState
impl<'de> Deserialize<'de> for SynchronizerState
Source§fn 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
Source§impl Display for SynchronizerState
impl Display for SynchronizerState
Source§impl PartialEq for SynchronizerState
impl PartialEq for SynchronizerState
Source§impl Serialize for SynchronizerState
impl Serialize for SynchronizerState
impl StructuralPartialEq for SynchronizerState
Auto Trait Implementations§
impl !Freeze for SynchronizerState
impl RefUnwindSafe for SynchronizerState
impl Send for SynchronizerState
impl Sync for SynchronizerState
impl Unpin for SynchronizerState
impl UnwindSafe for SynchronizerState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.