pub struct SyncInfo {
pub starting_block: U256,
pub current_block: U256,
pub highest_block: U256,
pub warp_chunks_amount: Option<U256>,
pub warp_chunks_processed: Option<U256>,
pub stages: Option<Vec<Stage>>,
}
Expand description
Syncing info
Fields§
§starting_block: U256
Starting block
current_block: U256
Current block
highest_block: U256
Highest block seen so far
warp_chunks_amount: Option<U256>
Warp sync snapshot chunks total.
warp_chunks_processed: Option<U256>
Warp sync snapshot chunks processed.
stages: Option<Vec<Stage>>
The details of the sync stages as an hashmap where the key is the name of the stage and the value is the block number.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SyncInfo
impl<'de> Deserialize<'de> for SyncInfo
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
impl Eq for SyncInfo
impl StructuralPartialEq for SyncInfo
Auto Trait Implementations§
impl Freeze for SyncInfo
impl RefUnwindSafe for SyncInfo
impl Send for SyncInfo
impl Sync for SyncInfo
impl Unpin for SyncInfo
impl UnwindSafe for SyncInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more