Struct paxakos::Shell

source ·
pub struct Shell<N: NodeImpl, S: State = Sendable> { /* private fields */ }
Expand description

The Node implementation that’s returned from NodeBuilders.

This Node implementation processes requests from NodeHandles. It delegates to the outermost Decoration, thus giving decorations a chance to intercept.

Implementations

Turns this node into a sendable one.

A sendable node can be more cumbersome to use but is Send.

Evaluates f, providing access to the full Node API through the argument passed to f.

Returns a wrapper around the future or stream returned by f that calls enter when polled.

Returns a wrapper around the future or stream returned by f that calls enter when polled.

Turns this node into an unsendable one.

An unsendable node is easier to use but is !Send.

This node’s identifier.

Node’s current status.

Node’s current mode of participation.

Polls the node’s event stream.

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

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

Returns a stream that polls this node for events.

Returns a handle for this node.

A node handle can be freely sent between threads.

Begins a graceful shutdown of this node.

Trait Implementations

Executes the destructor for this type. Read more
Leadership as assumed by this node. Read more
Leadership as assumed by this node. Read more
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.
Polls the node’s event stream. Read more
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
Reads the node’s current state. Read more
Reads the node’s current state. Read more
Reads the node’s current state. Read more
Reads the node’s current state. Read more
Appends applicable to the shared log.
Begins a graceful shutdown of this node.
Returns a future that polls this node for events until the next one is returned. Read more
Returns a stream that polls this node for events.

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