pub struct PeerInfoWire {
pub peer_id: HashHex,
pub remote_addr: String,
pub node_type: String,
pub connected_since: u64,
pub penalty: u32,
}Expand description
Peer info in wire form.
Fields§
§peer_id: HashHexPeer id — SHA256 of remote cert pubkey.
remote_addr: StringPeer IP address + port.
node_type: StringPeer node type (e.g., "full_node", "validator").
connected_since: u64Unix epoch seconds when the connection was established.
penalty: u32Accumulated penalty points for abuse.
Trait Implementations§
Source§impl Clone for PeerInfoWire
impl Clone for PeerInfoWire
Source§fn clone(&self) -> PeerInfoWire
fn clone(&self) -> PeerInfoWire
Returns a duplicate 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 PeerInfoWire
impl Debug for PeerInfoWire
Source§impl<'de> Deserialize<'de> for PeerInfoWire
impl<'de> Deserialize<'de> for PeerInfoWire
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PeerInfoWire
impl RefUnwindSafe for PeerInfoWire
impl Send for PeerInfoWire
impl Sync for PeerInfoWire
impl Unpin for PeerInfoWire
impl UnsafeUnpin for PeerInfoWire
impl UnwindSafe for PeerInfoWire
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