Enum SyncStatus

Source
pub enum SyncStatus {
    Initial,
    NoSync,
    AwaitingPeers(bool),
    HeaderSync {
        current_height: u64,
        highest_height: u64,
    },
    TxHashsetDownload {
        start_time: DateTime<Utc>,
        prev_update_time: DateTime<Utc>,
        update_time: DateTime<Utc>,
        prev_downloaded_size: u64,
        downloaded_size: u64,
        total_size: u64,
    },
    TxHashsetSetup,
    TxHashsetKernelsValidation {
        kernels: u64,
        kernels_total: u64,
    },
    TxHashsetRangeProofsValidation {
        rproofs: u64,
        rproofs_total: u64,
    },
    TxHashsetSave,
    TxHashsetDone,
    BodySync {
        current_height: u64,
        highest_height: u64,
    },
    Shutdown,
}
Expand description

Various status sync can be in, whether it’s fast sync or archival.

Variants§

§

Initial

Initial State (we do not yet know if we are/should be syncing)

§

NoSync

Not syncing

§

AwaitingPeers(bool)

Not enough peers to do anything yet, boolean indicates whether we should wait at all or ignore and start ASAP

§

HeaderSync

Downloading block headers

Fields

§current_height: u64
§highest_height: u64
§

TxHashsetDownload

Downloading the various txhashsets

Fields

§start_time: DateTime<Utc>
§prev_update_time: DateTime<Utc>
§update_time: DateTime<Utc>
§prev_downloaded_size: u64
§downloaded_size: u64
§total_size: u64
§

TxHashsetSetup

Setting up before validation

§

TxHashsetKernelsValidation

Validating the kernels

Fields

§kernels: u64
§kernels_total: u64
§

TxHashsetRangeProofsValidation

Validating the range proofs

Fields

§rproofs: u64
§rproofs_total: u64
§

TxHashsetSave

Finalizing the new state

§

TxHashsetDone

State sync finalized

§

BodySync

Downloading blocks

Fields

§current_height: u64
§highest_height: u64
§

Shutdown

Trait Implementations§

Source§

impl Clone for SyncStatus

Source§

fn clone(&self) -> SyncStatus

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SyncStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SyncStatus

Source§

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 PartialEq for SyncStatus

Source§

fn eq(&self, other: &SyncStatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SyncStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for SyncStatus

Source§

impl Eq for SyncStatus

Source§

impl StructuralPartialEq for SyncStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneAny for T
where T: Any + Clone,

Source§

fn clone_any(&self) -> Box<dyn CloneAny>

Source§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send>
where T: Send,

Source§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync>
where T: Sync,

Source§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send>
where T: Send + Sync,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<'a, T> DefaultFeatures<'a> for T
where T: 'a + Send + Sync + Clone,

Source§

fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>

Clone this value, and then immediately put it into a Box behind a trait object of this trait.
Source§

fn self_address_mut(&mut self) -> *mut ()

Returns the address of self. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T> NonSyncFeatures<'a> for T
where T: 'a + Clone,

Source§

fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>

Clone this value, and then immediately put it into a Box behind a trait object of this trait.
Source§

fn self_address_mut(&mut self) -> *mut ()

Returns the address of self. Read more
Source§

impl<T> SafeBorrow<T> for T
where T: ?Sized,

Source§

fn borrow_replacement(ptr: &T) -> &T

Given ptr, which was obtained from a prior call to Self::borrow(), return a value with the same nominal lifetime which is guaranteed to survive mutations to Self. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DebugAny for T
where T: Any + Debug,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Erased for T

Source§

impl<T> UnsafeAny for T
where T: Any,