Struct ckb_jsonrpc_types::PeerSyncState
source · [−]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
sourceimpl Clone for PeerSyncState
impl Clone for PeerSyncState
sourcefn clone(&self) -> PeerSyncState
fn clone(&self) -> PeerSyncState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PeerSyncState
impl Debug for PeerSyncState
sourceimpl Default for PeerSyncState
impl Default for PeerSyncState
sourcefn default() -> PeerSyncState
fn default() -> PeerSyncState
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PeerSyncState
impl<'de> Deserialize<'de> for PeerSyncState
sourcefn 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
sourceimpl Hash for PeerSyncState
impl Hash for PeerSyncState
sourceimpl PartialEq<PeerSyncState> for PeerSyncState
impl PartialEq<PeerSyncState> for PeerSyncState
sourcefn eq(&self, other: &PeerSyncState) -> bool
fn eq(&self, other: &PeerSyncState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PeerSyncState) -> bool
fn ne(&self, other: &PeerSyncState) -> bool
This method tests for !=
.
sourceimpl Serialize for PeerSyncState
impl Serialize for PeerSyncState
impl Eq for PeerSyncState
impl StructuralEq for PeerSyncState
impl StructuralPartialEq for PeerSyncState
Auto Trait Implementations
impl RefUnwindSafe for PeerSyncState
impl Send for PeerSyncState
impl Sync for PeerSyncState
impl Unpin for PeerSyncState
impl UnwindSafe for PeerSyncState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more