pub struct NodeBuilderWithNodeIdAndCommunicator<I: Invocation, C: Communicator> { /* private fields */ }
Expand description

Node builder with node id and communicator already set.

Implementations

Starts the node as specified by the given starter.

Starts the node without any state and in passive mode.

Starts a new cluster with the given initial state.

The round number will be zero.

Resume operation from the given snapshot.

Soundness

It is assumed that the given snapshot was yielded from the Final event of a clean shutdown and that the node hasn’t run in the meantime. As such the node will start in active participation mode. This is unsound if the assumptions are violated.

Use recovering_with to have a failed node recover.

Resume operation from the given snapshot.

The node will participate passively until it can be certain that it is not breaking any previous commitments.

Resume operation without a snapshot.

The node will participate passively until it can be certain that it is not breaking any previous commitments.

Commence operation from the given snapshot.

Soundness

This method assumes that the node is (re-)joining the Paxos cluster. Use recovering_with to have a failed node recover.

A node is considered to rejoin iff there is a previous round r such that this node

  • was not considered a member of the cluster for r and
  • it did not participate in any rounds since r.

Commence operation without a snapshot.

Soundness

This method assumes that the node is (re-)joining the Paxos cluster. Use recovering_with to have a failed node recover.

A node is considered to rejoin iff there is a previous round r such that this node

  • was not considered a member of the cluster for r and
  • it did not participate in any rounds since r.

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.

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