pub struct PeerDiagnosticsSnapshot {
pub peer_id: String,
pub is_gateway: bool,
pub ws_url: String,
pub location: Option<String>,
pub listening_address: Option<String>,
pub connected_peer_ids: Vec<String>,
pub connected_peers_detailed: Vec<ConnectedPeerInfo>,
pub active_connections: Option<usize>,
pub system_metrics: Option<SystemMetrics>,
pub error: Option<String>,
}Expand description
Diagnostic information for a single peer.
Fields§
§peer_id: String§is_gateway: bool§ws_url: String§location: Option<String>§listening_address: Option<String>§connected_peer_ids: Vec<String>§connected_peers_detailed: Vec<ConnectedPeerInfo>§active_connections: Option<usize>§system_metrics: Option<SystemMetrics>§error: Option<String>Trait Implementations§
Source§impl Clone for PeerDiagnosticsSnapshot
impl Clone for PeerDiagnosticsSnapshot
Source§fn clone(&self) -> PeerDiagnosticsSnapshot
fn clone(&self) -> PeerDiagnosticsSnapshot
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 PeerDiagnosticsSnapshot
impl Debug for PeerDiagnosticsSnapshot
Source§impl<'de> Deserialize<'de> for PeerDiagnosticsSnapshot
impl<'de> Deserialize<'de> for PeerDiagnosticsSnapshot
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 PeerDiagnosticsSnapshot
impl RefUnwindSafe for PeerDiagnosticsSnapshot
impl Send for PeerDiagnosticsSnapshot
impl Sync for PeerDiagnosticsSnapshot
impl Unpin for PeerDiagnosticsSnapshot
impl UnwindSafe for PeerDiagnosticsSnapshot
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