pub struct DebugDiscoveredPeerSnapshot {
pub node_id: String,
pub short_id: String,
pub addr: String,
pub is_client: bool,
pub is_relay: bool,
pub is_gateway: bool,
pub last_seen_age_ms: u64,
}Expand description
Discovery-layer peer observation.
Fields§
§node_id: String§short_id: String§addr: String§is_client: bool§is_relay: bool§is_gateway: bool§last_seen_age_ms: u64Trait Implementations§
Source§impl Clone for DebugDiscoveredPeerSnapshot
impl Clone for DebugDiscoveredPeerSnapshot
Source§fn clone(&self) -> DebugDiscoveredPeerSnapshot
fn clone(&self) -> DebugDiscoveredPeerSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DebugDiscoveredPeerSnapshot
impl Debug for DebugDiscoveredPeerSnapshot
Source§impl<'de> Deserialize<'de> for DebugDiscoveredPeerSnapshot
impl<'de> Deserialize<'de> for DebugDiscoveredPeerSnapshot
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 DebugDiscoveredPeerSnapshot
impl RefUnwindSafe for DebugDiscoveredPeerSnapshot
impl Send for DebugDiscoveredPeerSnapshot
impl Sync for DebugDiscoveredPeerSnapshot
impl Unpin for DebugDiscoveredPeerSnapshot
impl UnsafeUnpin for DebugDiscoveredPeerSnapshot
impl UnwindSafe for DebugDiscoveredPeerSnapshot
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