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.

Returns the number of failures.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.