pub struct PeerManagerBuilder { /* private fields */ }

Implementations

Constructs new PeerManager instances.

This builder is used to construct new PeerManager instances. The PeerManager requires a Connector to request connections from the ConnectionManageer and the unique ID of the node this PeerManager is for. It also has several optional configuration values, such as max_retry_attempts and retry_interval.

Construct a new builder.

Set the connector instance to use with the resulting PeerManager.

This is the Connector to the ConnectionManager that will handle the connections requested by the PeerManager.

Set the max_retry_attempts instance to use with the resulting PeerManager.

The number of retry attempts for an active endpoint before the PeerManager will try other endpoints associated with a peer

Set the retry_interval to use with the resulting PeerManager.

How often (in seconds) the Pacemaker should notify the PeerManager to retry pending peers.

Set the initial retry_frequency to use with the resulting PeerManager.

How often (in seconds) the PeerManager will wait before retrying a pending peer’s endpoints

Set the max_retry_frequency to use with the resulting PeerManager.

The maximum time (in seconds) the PeerManager will wait before retrying a pending peer’s endpoints

Set the initial endpoint_retry_frequency to use with the resulting PeerManager.

How often (in seconds) the PeerManager will wait before retrying a pending requested endpoint that does not have an ID

Set the identity to use with the resulting PeerManager.

The unique ID of the node this PeerManager belongs to.

Set strict_ref_counts in the the resulting PeerManager.

Determines whether or not to panic when attempting to remove a reference to a peer that is not referenced.

Starts the PeerManager

Starts up a thread that will handle incoming requests to add, remove and get peers. Also handles notifications from the ConnectionManager.

Returns a PeerManagerConnector that can be used to send requests to the PeerManager.

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

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Should always be Self

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.

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