Struct paxakos::node::Core[][src]

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>>, 
{ /* fields omitted */ }
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 of communicator this node uses.

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 given snapshot be installed.

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.

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

Performs the conversion.

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

Performs the conversion.

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