Struct raft::ReadState [−][src]
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for ReadState
impl UnwindSafe for ReadState
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V