pub struct Core<I, C> where
    I: Invocation,
    C: Communicator<Node = NodeOf<I>, RoundNum = RoundNumOf<I>, CoordNum = CoordNumOf<I>, LogEntry = LogEntryOf<I>, Error = CommunicationErrorOf<I>, Yea = YeaOf<I>, Nay = NayOf<I>, Abstain = AbstainOf<I>>, 
{ /* private fields */ }
Expand description

The core Node implementation.

This Node implemenation does most of the heavy lifting w/r/t the consensus protocol. It has a counterpart Shell.

Trait Implementations

Polls the node’s status, yielding Ready on every change.

It is important to poll the node’s event stream because it implicitly drives the actions that keep the node up to date.

Parametrization of the paxakos algorithm.

Type that will perform graceful shutdown if requsted.

This node’s identifier.

Node’s current status.

Node’s current mode of participation.

Returns a handle for this node. Read more

Requests that snapshot of the node’s current state be taken.

Affirms that the given snapshot was written to persistent storage. Read more

Requests that the given snapshot be installed. Read more

Appends applicable to the shared log.

Appends applicable to the shared log.

Reads the node’s current state. Read more

Begins a graceful shutdown of this node.

Returns a future that polls this node for events until the next one is returned. Read more

Appends applicable to the shared log.

Wait for the log entry with the given ID to be committed.

Eject the node’s state. Read more

Polls the given nodes for the log entry to apply to the given round. 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

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