Struct raft::ReadState[][src]

pub struct ReadState {
    pub index: u64,
    pub request_ctx: Vec<u8>,
}

ReadState provides state for read only query. It’s caller’s responsibility to send MsgReadIndex first before getting this state from ready. It’s also caller’s duty to differentiate if this state is what it requests through request_ctx, e.g. given a unique id as request_ctx.

Fields

index: u64

The index of the read state.

request_ctx: Vec<u8>

A datagram consisting of context about the request.

Trait Implementations

impl Clone for ReadState[src]

impl Debug for ReadState[src]

impl Default for ReadState[src]

impl PartialEq<ReadState> for ReadState[src]

impl StructuralPartialEq for ReadState[src]

Auto Trait Implementations

impl RefUnwindSafe for ReadState

impl Send for ReadState

impl Sync for ReadState

impl Unpin for ReadState

impl UnwindSafe for ReadState

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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>, 
[src]