pub struct RouterStats {
pub packets_received: u64,
pub packets_forwarded: u64,
pub packets_local: u64,
pub packets_dropped: u64,
pub bytes_received: u64,
pub bytes_forwarded: u64,
pub routes: usize,
pub streams: usize,
pub avg_latency_ns: u64,
}Expand description
Router statistics
Fields§
§packets_received: u64Packets received
packets_forwarded: u64Packets forwarded
packets_local: u64Packets delivered locally
packets_dropped: u64Packets dropped (TTL, no route, queue full)
bytes_received: u64Bytes received
bytes_forwarded: u64Bytes forwarded
routes: usizeActive routes
streams: usizeActive streams
avg_latency_ns: u64Average routing latency (nanoseconds)
Trait Implementations§
Source§impl Clone for RouterStats
impl Clone for RouterStats
Source§fn clone(&self) -> RouterStats
fn clone(&self) -> RouterStats
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 RouterStats
impl Debug for RouterStats
Source§impl Default for RouterStats
impl Default for RouterStats
Source§fn default() -> RouterStats
fn default() -> RouterStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RouterStats
impl RefUnwindSafe for RouterStats
impl Send for RouterStats
impl Sync for RouterStats
impl Unpin for RouterStats
impl UnsafeUnpin for RouterStats
impl UnwindSafe for RouterStats
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