Struct cuprate_wire::p2p::common::BasicNodeData
source · pub struct BasicNodeData {
pub my_port: u32,
pub network_id: [u8; 16],
pub peer_id: u64,
pub support_flags: PeerSupportFlags,
pub rpc_port: u16,
pub rpc_credits_per_hash: u32,
}Expand description
Basic Node Data, information on the connected peer
Fields§
§my_port: u32Port
network_id: [u8; 16]The Network Id
peer_id: u64Peer ID
support_flags: PeerSupportFlagsThe Peers Support Flags (If this is not in the message the default is 0)
rpc_port: u16RPC Port (If this is not in the message the default is 0)
rpc_credits_per_hash: u32RPC Credits Per Hash (If this is not in the message the default is 0)
Trait Implementations§
source§impl Clone for BasicNodeData
impl Clone for BasicNodeData
source§fn clone(&self) -> BasicNodeData
fn clone(&self) -> BasicNodeData
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 BasicNodeData
impl Debug for BasicNodeData
source§impl EpeeObject for BasicNodeData
impl EpeeObject for BasicNodeData
source§impl PartialEq for BasicNodeData
impl PartialEq for BasicNodeData
source§fn eq(&self, other: &BasicNodeData) -> bool
fn eq(&self, other: &BasicNodeData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BasicNodeData
impl StructuralPartialEq for BasicNodeData
Auto Trait Implementations§
impl Freeze for BasicNodeData
impl RefUnwindSafe for BasicNodeData
impl Send for BasicNodeData
impl Sync for BasicNodeData
impl Unpin for BasicNodeData
impl UnwindSafe for BasicNodeData
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: 40 bytes