Struct pea2pea::Stats [−][src]
pub struct Stats { /* fields omitted */ }
Expand description
Contains statistics related to a node.
Implementations
Registers a sent message of the provided size
in bytes.
Registers a received message of the provided size
in bytes.
Registers a failure.
Returns the number of sent messages and their collective size in bytes.
Returns the number of received messages and their collective size in bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stats
impl UnwindSafe for Stats
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more