[][src]Struct memstore::ClientRequest

pub struct ClientRequest {
    pub client: String,
    pub serial: u64,
    pub status: String,
}

The application data request type which the MemStore works with.

Conceptually, for demo purposes, this represents an update to a client's status info, returning the previously recorded status.

Fields

client: String

The ID of the client which has sent the request.

serial: u64

The serial number of this request.

status: String

A string describing the status of the client. For a real application, this should probably be an enum representing all of the various types of requests / operations which a client can perform.

Trait Implementations

impl AppData for ClientRequest[src]

impl Clone for ClientRequest[src]

impl Debug for ClientRequest[src]

impl<'de> Deserialize<'de> for ClientRequest[src]

impl RaftStorage<ClientRequest, ClientResponse> for MemStore[src]

type Snapshot = Cursor<Vec<u8>>

The storage engine's associated type used for exposing a snapshot for reading & writing.

impl Serialize for ClientRequest[src]

Auto Trait Implementations

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: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> WithSubscriber for T[src]