pub struct FullMeshPeeringStrategy { /* private fields */ }
Expand description

A “Full Mesh” peering strategy is a peering strategy that tries to establish and maintain a direct connection with all of the known nodes in the network.

Implementations

Create a new Full Mesh peering strategy. The strategy will not be run until .run() is called and awaited. Once that happens, the peering strategy will try to connect to all of the nodes specified in the bootstrap list.

Run the full mesh peering strategy. This future exits when the must_exit watch becomes true.

Returns a list of currently known peers in the network.

Set the timeout for ping messages, in milliseconds

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.