logo
pub struct MultiNodeCut { /* private fields */ }
Expand description

An accepted view-change proposal. Cloning this is cheap, as membership information is stored as refcounted slices.

Implementations

Returns the number of cuts that were skipped between this and the last received cut.

If this isn’t 0, joined and kicked most likely do not represent the complete set of membership changes since the last cut.

On the other hand, members will always be complete.

Returns the local node’s listening address.

Returns the accepted configuration id.

Returns true if the local node is not a member of the configuration.

Returns all members in the configuration.

Returns any members that joined.

Returns any members that were kicked.

Returns an iterator over any members that have key in their metadata, as well as each associated value.

Lookup a specific member in the configuration by socket address.

Executes in O(log n) time.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Binary search for the provided addr.

O(log n)

Panics

Panics if a member with addr doesn’t exist in the configuration.

The returned type after indexing.

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

Calls U::from(self).

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

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)

Uses borrowed data to replace owned data, usually by cloning. Read more

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