pub struct PeerSyncState {
pub best_known_header_hash: Option<Byte32>,
pub best_known_header_number: Option<Uint64>,
pub last_common_header_hash: Option<Byte32>,
pub last_common_header_number: Option<Uint64>,
pub unknown_header_list_size: Uint64,
pub inflight_count: Uint64,
pub can_fetch_count: Uint64,
}
Expand description
The chain synchronization state between the local node and a remote node.
Fields§
§best_known_header_hash: Option<Byte32>
Best known header hash of remote peer.
This is the observed tip of the remote node’s canonical chain.
best_known_header_number: Option<Uint64>
Best known header number of remote peer
This is the block number of the block with the hash best_known_header_hash
.
last_common_header_hash: Option<Byte32>
Last common header hash of remote peer.
This is the common ancestor of the local node canonical chain tip and the block
best_known_header_hash
.
last_common_header_number: Option<Uint64>
Last common header number of remote peer.
This is the block number of the block with the hash last_common_header_hash
.
unknown_header_list_size: Uint64
The total size of unknown header list.
Deprecated: this is an internal state and will be removed in a future release.
inflight_count: Uint64
The count of concurrency downloading blocks.
can_fetch_count: Uint64
The count of blocks are available for concurrency download.
Trait Implementations§
Source§impl Clone for PeerSyncState
impl Clone for PeerSyncState
Source§fn clone(&self) -> PeerSyncState
fn clone(&self) -> PeerSyncState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PeerSyncState
impl Debug for PeerSyncState
Source§impl Default for PeerSyncState
impl Default for PeerSyncState
Source§fn default() -> PeerSyncState
fn default() -> PeerSyncState
Source§impl<'de> Deserialize<'de> for PeerSyncState
impl<'de> Deserialize<'de> for PeerSyncState
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>,
Source§impl Hash for PeerSyncState
impl Hash for PeerSyncState
Source§impl JsonSchema for PeerSyncState
impl JsonSchema for PeerSyncState
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for PeerSyncState
impl PartialEq for PeerSyncState
Source§impl Serialize for PeerSyncState
impl Serialize for PeerSyncState
impl Eq for PeerSyncState
impl StructuralPartialEq for PeerSyncState
Auto Trait Implementations§
impl Freeze for PeerSyncState
impl RefUnwindSafe for PeerSyncState
impl Send for PeerSyncState
impl Sync for PeerSyncState
impl Unpin for PeerSyncState
impl UnwindSafe for PeerSyncState
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
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)
clone_to_uninit
)