pub struct PeerStatusSnapshot {
pub running: bool,
pub peer_id: Option<HexId>,
pub network_id: String,
pub relay: RelayStatus,
pub connected_peers: u64,
pub last_error: Option<String>,
}Expand description
Result for control.peerStatus —
a snapshot of the node’s L7 peer network. Always safe to call; reports
running: false on the FFI path.
Fields§
§running: boolWhether a peer network is currently active.
peer_id: Option<HexId>This node’s peer_id (64-hex), if a peer network is running.
network_id: StringThe DIG network id.
relay: RelayStatusThe relay reservation posture.
connected_peers: u64The number of currently connected peers.
last_error: Option<String>The last peer-network error, if any.
Trait Implementations§
Source§impl Clone for PeerStatusSnapshot
impl Clone for PeerStatusSnapshot
Source§fn clone(&self) -> PeerStatusSnapshot
fn clone(&self) -> PeerStatusSnapshot
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 PeerStatusSnapshot
impl Debug for PeerStatusSnapshot
Source§impl<'de> Deserialize<'de> for PeerStatusSnapshot
impl<'de> Deserialize<'de> for PeerStatusSnapshot
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
Source§impl PartialEq for PeerStatusSnapshot
impl PartialEq for PeerStatusSnapshot
Source§impl Serialize for PeerStatusSnapshot
impl Serialize for PeerStatusSnapshot
impl StructuralPartialEq for PeerStatusSnapshot
Auto Trait Implementations§
impl Freeze for PeerStatusSnapshot
impl RefUnwindSafe for PeerStatusSnapshot
impl Send for PeerStatusSnapshot
impl Sync for PeerStatusSnapshot
impl Unpin for PeerStatusSnapshot
impl UnsafeUnpin for PeerStatusSnapshot
impl UnwindSafe for PeerStatusSnapshot
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