pub struct DebugSnapshot {
pub version: u32,
pub generated_at_unix_secs: u64,
pub node: DebugNodeSnapshot,
pub stats: DebugStatsSnapshot,
pub peers: Vec<DebugPeerSnapshot>,
pub discovered_peers: Vec<DebugDiscoveredPeerSnapshot>,
pub routes: Vec<DebugRouteSnapshot>,
pub gateways: Vec<DebugGatewaySnapshot>,
}Expand description
Versioned snapshot of live daemon state for debug/inspection commands.
Fields§
§version: u32Snapshot schema version.
generated_at_unix_secs: u64Unix timestamp when the snapshot was generated.
node: DebugNodeSnapshotLocal node runtime information.
stats: DebugStatsSnapshotHigh-level counters and rates exposed by the daemon.
peers: Vec<DebugPeerSnapshot>Live connected peers.
discovered_peers: Vec<DebugDiscoveredPeerSnapshot>Peers observed via discovery, whether connected or not.
routes: Vec<DebugRouteSnapshot>Installed routes currently used for forwarding.
gateways: Vec<DebugGatewaySnapshot>Known gateways sorted by preference.
Trait Implementations§
Source§impl Clone for DebugSnapshot
impl Clone for DebugSnapshot
Source§fn clone(&self) -> DebugSnapshot
fn clone(&self) -> DebugSnapshot
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 DebugSnapshot
impl Debug for DebugSnapshot
Source§impl<'de> Deserialize<'de> for DebugSnapshot
impl<'de> Deserialize<'de> for DebugSnapshot
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 DebugSnapshot
impl RefUnwindSafe for DebugSnapshot
impl Send for DebugSnapshot
impl Sync for DebugSnapshot
impl Unpin for DebugSnapshot
impl UnsafeUnpin for DebugSnapshot
impl UnwindSafe for DebugSnapshot
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