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.

Removes an address to the list of known peers.

Registers a connection to the given address.

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.

Acquires a read lock over the collection of known peers.

Acquires a write lock over the collection of known peers.

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.