Struct cuprate_wire::p2p::common::PeerListEntryBase
source · pub struct PeerListEntryBase {
pub adr: NetworkAddress,
pub id: u64,
pub last_seen: i64,
pub pruning_seed: u32,
pub rpc_port: u16,
pub rpc_credits_per_hash: u32,
}Expand description
PeerListEntryBase, information kept on a peer which will be entered in a peer list/store.
Fields§
§adr: NetworkAddressThe Peer Address
id: u64The Peer ID
last_seen: i64The last Time The Peer Was Seen
pruning_seed: u32The Pruning Seed
rpc_port: u16The RPC port
rpc_credits_per_hash: u32The RPC credits per hash
Trait Implementations§
source§impl Clone for PeerListEntryBase
impl Clone for PeerListEntryBase
source§fn clone(&self) -> PeerListEntryBase
fn clone(&self) -> PeerListEntryBase
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 PeerListEntryBase
impl Debug for PeerListEntryBase
source§impl EpeeObject for PeerListEntryBase
impl EpeeObject for PeerListEntryBase
source§impl PartialEq for PeerListEntryBase
impl PartialEq for PeerListEntryBase
source§fn eq(&self, other: &PeerListEntryBase) -> bool
fn eq(&self, other: &PeerListEntryBase) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PeerListEntryBase
impl Eq for PeerListEntryBase
impl StructuralPartialEq for PeerListEntryBase
Auto Trait Implementations§
impl Freeze for PeerListEntryBase
impl RefUnwindSafe for PeerListEntryBase
impl Send for PeerListEntryBase
impl Sync for PeerListEntryBase
impl Unpin for PeerListEntryBase
impl UnwindSafe for PeerListEntryBase
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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<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