Struct paxakos::node::NodeHandle [−][src]
pub struct NodeHandle<I: Invocation> { /* fields omitted */ }
Expand description
A remote handle for a paxakos Node
.
Implementations
Node’s current status.
pub fn prepare_snapshot(
&self
) -> impl Future<Output = Result<SnapshotFor<I>, PrepareSnapshotError>>
pub fn prepare_snapshot(
&self
) -> impl Future<Output = Result<SnapshotFor<I>, PrepareSnapshotError>>
Requests that snapshot of the node’s current state be taken.
pub fn affirm_snapshot(
&self,
snapshot: SnapshotFor<I>
) -> impl Future<Output = Result<(), AffirmSnapshotError>>
pub fn affirm_snapshot(
&self,
snapshot: SnapshotFor<I>
) -> impl Future<Output = Result<(), AffirmSnapshotError>>
Affirms that the given snapshot was written to persistent storage.
Currently does nothing.
pub fn install_snapshot(
&self,
snapshot: SnapshotFor<I>
) -> impl Future<Output = Result<(), InstallSnapshotError>>
pub fn install_snapshot(
&self,
snapshot: SnapshotFor<I>
) -> impl Future<Output = Result<(), InstallSnapshotError>>
Requests that given snapshot be installed.
Reads the node’s current state.
As the name implies the state may be stale, i.e. other node’s may have advanced the shared state without this node being aware.
pub fn append<A, P, R>(
&self,
applicable: A,
args: P
) -> impl Future<Output = Result<CommitFor<I, A>, R::StaticError>> where
A: ApplicableTo<StateOf<I>>,
P: Into<AppendArgs<I, R>>,
R: RetryPolicy<Invocation = I> + Send + 'static,
R::Error: Send,
R::StaticError: From<ShutDownOr<R::Error>>,
pub fn append<A, P, R>(
&self,
applicable: A,
args: P
) -> impl Future<Output = Result<CommitFor<I, A>, R::StaticError>> where
A: ApplicableTo<StateOf<I>>,
P: Into<AppendArgs<I, R>>,
R: RetryPolicy<Invocation = I> + Send + 'static,
R::Error: Send,
R::StaticError: From<ShutDownOr<R::Error>>,
Appends applicable
to the shared log.
Trait Implementations
Auto Trait Implementations
impl<I> !RefUnwindSafe for NodeHandle<I>
impl<I> Send for NodeHandle<I>
impl<I> Sync for NodeHandle<I>
impl<I> Unpin for NodeHandle<I>
impl<I> !UnwindSafe for NodeHandle<I>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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