[][src]Struct actix_raft::storage::ReplicateToStateMachine

pub struct ReplicateToStateMachine<D: AppData, E: AppError> {
    pub payload: Vec<Entry<D>>,
    // some fields omitted
}

A request from Raft to apply the given payload of entries to the state machine, as part of replication.

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: Vec<Entry<D>>

Methods

impl<D: AppData, E: AppError> ReplicateToStateMachine<D, E>[src]

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

Trait Implementations

impl<D: AppData, E: AppError> Message for ReplicateToStateMachine<D, E>[src]

type Result = Result<(), E>

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

Auto Trait Implementations

impl<D, E> RefUnwindSafe for ReplicateToStateMachine<D, E> where
    D: RefUnwindSafe,
    E: RefUnwindSafe

impl<D, E> Send for ReplicateToStateMachine<D, E>

impl<D, E> Sync for ReplicateToStateMachine<D, E>

impl<D, E> Unpin for ReplicateToStateMachine<D, E> where
    D: Unpin,
    E: Unpin

impl<D, E> UnwindSafe for ReplicateToStateMachine<D, E> where
    D: UnwindSafe,
    E: 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>,