[][src]Struct actix_raft::storage::AppendEntryToLog

pub struct AppendEntryToLog<D: AppData, E: AppError> {
    pub entry: Arc<Entry<D>>,
    // some fields omitted
}

A request from Raft to append a new entry to the log.

These requests come about via client requests, and as such, this is the only RaftStorage interface which is allowed to return errors which will not cause Raft to shutdown. Application errors coming from this interface will be sent back as-is to the call point where your application originally presented the client request to Raft.

This property of error handling allows you to keep your application logic as close to the storage layer as needed.

Fields

entry: Arc<Entry<D>>

Methods

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

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

Trait Implementations

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

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

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

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

impl<D, E> UnwindSafe for AppendEntryToLog<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>,