pub struct DhtStats {
pub node_id: Id20,
pub routing_table_size: usize,
pub bucket_count: usize,
pub peer_store_info_hashes: usize,
pub peer_store_peers: usize,
pub pending_queries: usize,
pub total_queries_sent: u64,
pub total_responses_received: u64,
pub dht_item_count: usize,
}Expand description
Runtime statistics for the DHT.
Fields§
§node_id: Id20Our current node ID (may differ from startup ID after BEP 42 regeneration).
routing_table_size: usizeNumber of nodes in the routing table.
bucket_count: usizeNumber of k-buckets in use.
peer_store_info_hashes: usizeNumber of distinct info hashes tracked in the peer store.
peer_store_peers: usizeTotal number of peers across all info hashes.
pending_queries: usizeNumber of in-flight KRPC queries.
total_queries_sent: u64Total KRPC queries sent since startup.
total_responses_received: u64Total KRPC responses received since startup.
dht_item_count: usizeNumber of BEP 44 items stored (immutable + mutable).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DhtStats
impl RefUnwindSafe for DhtStats
impl Send for DhtStats
impl Sync for DhtStats
impl Unpin for DhtStats
impl UnsafeUnpin for DhtStats
impl UnwindSafe for DhtStats
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