[][src]Struct actix_raft::storage::ReplicateToLog

pub struct ReplicateToLog<D: AppData, E: AppError> {
    pub entries: Arc<Vec<Entry<D>>>,
    // some fields omitted
}

A request from Raft to replicate a payload of entries to the log.

These requests come about via the Raft leader's replication process. An error coming from this interface will cause Raft to shutdown, as this is not where application logic should be returning application specific errors. Application specific constraints may only be enforced in the AppendEntryToLog handler.

Though the entries will always be presented in order, each entry's index should be used to determine its location to be written in the log, as logs may need to be overwritten under some circumstances.

Fields

entries: Arc<Vec<Entry<D>>>

Methods

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

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

Trait Implementations

impl<D: AppData, E: AppError> Message for ReplicateToLog<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 ReplicateToLog<D, E> where
    D: RefUnwindSafe,
    E: RefUnwindSafe

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

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

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

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