Struct cuprate_wire::p2p::common::CoreSyncData
source · pub struct CoreSyncData {
pub cumulative_difficulty: u64,
pub cumulative_difficulty_top64: u64,
pub current_height: u64,
pub pruning_seed: u32,
pub top_id: [u8; 32],
pub top_version: u8,
}Expand description
Core Sync Data, information on the sync state of a peer
Fields§
§cumulative_difficulty: u64Cumulative Difficulty Low The lower 64 bits of the 128 bit cumulative difficulty
cumulative_difficulty_top64: u64Cumulative Difficulty High The upper 64 bits of the 128 bit cumulative difficulty
current_height: u64Current Height of the peer
pruning_seed: u32Pruning Seed of the peer (If this is not in the message the default is 0)
top_id: [u8; 32]Hash of the top block
top_version: u8Version of the top block
Implementations§
source§impl CoreSyncData
impl CoreSyncData
Trait Implementations§
source§impl Clone for CoreSyncData
impl Clone for CoreSyncData
source§fn clone(&self) -> CoreSyncData
fn clone(&self) -> CoreSyncData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CoreSyncData
impl Debug for CoreSyncData
source§impl EpeeObject for CoreSyncData
impl EpeeObject for CoreSyncData
source§impl PartialEq for CoreSyncData
impl PartialEq for CoreSyncData
source§fn eq(&self, other: &CoreSyncData) -> bool
fn eq(&self, other: &CoreSyncData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CoreSyncData
impl StructuralPartialEq for CoreSyncData
Auto Trait Implementations§
impl Freeze for CoreSyncData
impl RefUnwindSafe for CoreSyncData
impl Send for CoreSyncData
impl Sync for CoreSyncData
impl Unpin for CoreSyncData
impl UnwindSafe for CoreSyncData
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> EpeeValue for Twhere
T: EpeeObject,
impl<T> EpeeValue for Twhere
T: EpeeObject,
const MARKER: Marker = _
fn read<B>(r: &mut B, marker: &Marker) -> Result<T, Error>where
B: Buf,
fn write<B>(self, w: &mut B) -> Result<(), Error>where
B: BufMut,
fn should_write(&self) -> bool
source§fn epee_default_value() -> Option<Self>
fn epee_default_value() -> Option<Self>
This is different than default field values and instead is the default
value of a whole type. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes