Struct pea2pea::KnownPeers[][src]

pub struct KnownPeers(_);
Expand description

Contains statistics related to node’s peers, currently connected or not.

Implementations

Adds an address to the list of known peers.

Returns the stats for the given peer.

Removes an address to the list of known peers.

Returns the list of all known peers and their stats.

Registers a submission of a message to the given address.

Registers a receipt of a message to the given address.

Registers a failure associated with the given address.

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.