pub struct DebugPeerSnapshot {
pub node_id: String,
pub short_id: String,
pub addr: Option<String>,
pub mechanism: Option<String>,
pub direct: bool,
pub configured: bool,
pub discovered: bool,
pub last_heartbeat_age_ms: Option<u64>,
}Expand description
Live peer session information.
Fields§
§node_id: String§short_id: String§addr: Option<String>§mechanism: Option<String>§direct: bool§configured: bool§discovered: bool§last_heartbeat_age_ms: Option<u64>Trait Implementations§
Source§impl Clone for DebugPeerSnapshot
impl Clone for DebugPeerSnapshot
Source§fn clone(&self) -> DebugPeerSnapshot
fn clone(&self) -> DebugPeerSnapshot
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 DebugPeerSnapshot
impl Debug for DebugPeerSnapshot
Source§impl<'de> Deserialize<'de> for DebugPeerSnapshot
impl<'de> Deserialize<'de> for DebugPeerSnapshot
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 DebugPeerSnapshot
impl RefUnwindSafe for DebugPeerSnapshot
impl Send for DebugPeerSnapshot
impl Sync for DebugPeerSnapshot
impl Unpin for DebugPeerSnapshot
impl UnsafeUnpin for DebugPeerSnapshot
impl UnwindSafe for DebugPeerSnapshot
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