[][src]Enum actix_raft::messages::ClientPayloadResponse

pub enum ClientPayloadResponse<R: AppDataResponse> {
    Committed {
        index: u64,
    },
    Applied {
        index: u64,
        data: R,
    },
}

A response to a client payload proposed to the Raft system.

Variants

Committed

A client response issued just after the request was committed to the cluster.

Fields of Committed

index: u64

The log index of the successfully processed client request.

Applied

Fields of Applied

index: u64

The log index of the successfully processed client request.

data: R

Application specific response data.

Methods

impl<R: AppDataResponse> ClientPayloadResponse<R>[src]

pub fn index(&self) -> u64[src]

The index of the log entry corresponding to this response object.

Trait Implementations

impl<R: Debug + AppDataResponse> Debug for ClientPayloadResponse<R>[src]

impl<'de, R: AppDataResponse> Deserialize<'de> for ClientPayloadResponse<R> where
    R: AppDataResponse
[src]

impl<R: AppDataResponse> Serialize for ClientPayloadResponse<R> where
    R: AppDataResponse
[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for ClientPayloadResponse<R> where
    R: RefUnwindSafe

impl<R> Send for ClientPayloadResponse<R>

impl<R> Sync for ClientPayloadResponse<R>

impl<R> Unpin for ClientPayloadResponse<R> where
    R: Unpin

impl<R> UnwindSafe for ClientPayloadResponse<R> where
    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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,