[][src]Struct paxakos::NodeHandle

pub struct NodeHandle<S, R, C> where
    S: State,
    R: RoundNum,
    C: CoordNum
{ /* fields omitted */ }

A remote handle for a paxakos Node.

Implementations

impl<S, R, C> NodeHandle<S, R, C> where
    S: State,
    R: RoundNum,
    C: CoordNum
[src]

pub fn status(&self) -> impl Future<Output = Result<NodeStatus, ()>>[src]

pub fn prepare_snapshot(
    &self
) -> impl Future<Output = Result<Snapshot<S, R, C>, PrepareSnapshotError>>
[src]

pub fn affirm_snapshot(
    &self,
    snapshot: Snapshot<S, R, C>
) -> impl Future<Output = Result<(), AffirmSnapshotError>>
[src]

pub fn install_snapshot(
    &self,
    snapshot: Snapshot<S, R, C>
) -> impl Future<Output = Result<(), InstallSnapshotError>>
[src]

pub fn read_stale(&self) -> impl Future<Output = Result<Arc<S>, ReadStaleError>>[src]

pub fn append<I: Into<Arc<LogEntryOf<S>>>>(
    &self,
    log_entry: I,
    args: AppendArgs<R>
) -> impl Future<Output = Result<Commit<S>, AppendError>>
[src]

Trait Implementations

impl<S, R, C> Admin for NodeHandle<S, R, C> where
    S: State,
    R: RoundNum,
    C: CoordNum
[src]

impl<S: Clone, R: Clone, C: Clone> Clone for NodeHandle<S, R, C> where
    S: State,
    R: RoundNum,
    C: CoordNum
[src]

impl<S, R, C> Debug for NodeHandle<S, R, C> where
    S: State,
    R: RoundNum,
    C: CoordNum
[src]

Auto Trait Implementations

impl<S, R, C> !RefUnwindSafe for NodeHandle<S, R, C>

impl<S, R, C> Send for NodeHandle<S, R, C> where
    <<S as State>::LogEntry as LogEntry>::Id: Send,
    <S as State>::LogEntry: LogEntry + Send + Sync,
    <S as State>::Node: Send,
    <S as State>::Outcome: Send

impl<S, R, C> Sync for NodeHandle<S, R, C> where
    <<S as State>::LogEntry as LogEntry>::Id: Send,
    <S as State>::LogEntry: LogEntry + Send + Sync,
    <S as State>::Node: Send,
    <S as State>::Outcome: Send

impl<S, R, C> Unpin for NodeHandle<S, R, C>

impl<S, R, C> !UnwindSafe for NodeHandle<S, R, C>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,