[][src]Struct actix_raft::storage::ApplyEntryToStateMachine

pub struct ApplyEntryToStateMachine<D: AppData, R: AppDataResponse, E: AppError> {
    pub payload: Arc<Entry<D>>,
    // some fields omitted
}

A request from Raft to apply the given log entry to the state machine.

This handler is called as part of the client request path. Client requests which are configured to respond after they have been Applied will wait until after this handler returns before issuing a response to the client request.

The Raft protocol guarantees that only logs which have been committed, that is, logs which have been replicated to a majority of the cluster, will be applied to the state machine.

Fields

payload: Arc<Entry<D>>

Methods

impl<D: AppData, R: AppDataResponse, E: AppError> ApplyEntryToStateMachine<D, R, E>[src]

pub fn new(payload: Arc<Entry<D>>) -> Self[src]

Trait Implementations

impl<D: AppData, R: AppDataResponse, E: AppError> Message for ApplyEntryToStateMachine<D, R, E>[src]

type Result = Result<R, E>

The type of value that this message will resolved with if it is successful. Read more

Auto Trait Implementations

impl<D, R, E> RefUnwindSafe for ApplyEntryToStateMachine<D, R, E> where
    D: RefUnwindSafe,
    E: RefUnwindSafe,
    R: RefUnwindSafe

impl<D, R, E> Send for ApplyEntryToStateMachine<D, R, E>

impl<D, R, E> Sync for ApplyEntryToStateMachine<D, R, E>

impl<D, R, E> Unpin for ApplyEntryToStateMachine<D, R, E> where
    E: Unpin,
    R: Unpin

impl<D, R, E> UnwindSafe for ApplyEntryToStateMachine<D, R, E> where
    D: RefUnwindSafe,
    E: UnwindSafe,
    R: UnwindSafe

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, 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>,