Struct celestia_types::SyncState
source · pub struct SyncState {
pub id: u64,
pub height: u64,
pub from_height: u64,
pub to_height: u64,
pub from_hash: Hash,
pub to_hash: Hash,
pub start: Time,
pub end: Time,
pub error: Option<String>,
}Expand description
A state of the blockchain synchronization.
Fields§
§id: u64The ID of the current syncing process.
height: u64Currently synced height.
from_height: u64The first height to be synced.
to_height: u64The last height to be synced.
from_hash: HashThe first hash to be synced.
to_hash: HashThe last hash to be synced.
start: TimeThe time when syncing began.
end: TimeThe time when syncing ended.
error: Option<String>Any error during synchronisation, if it occured
Trait Implementations§
source§impl<'de> Deserialize<'de> for SyncState
impl<'de> Deserialize<'de> for SyncState
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 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 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
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)