pub struct Stats { /* fields omitted */ }
Expand description
Contains statistics related to a node.
Registers a sent message of the provided size
in bytes.
Registers a received message of the provided size
in bytes.
Returns the number of sent messages and their collective size in bytes.
Returns the number of received messages and their collective size in bytes.
Returns the number of failures.
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.