Enum raft::ReadOnlyOption [−][src]
pub enum ReadOnlyOption { Safe, LeaseBased, }
Expand description
Determines the relative safety of and consistency of read only requests.
Variants
Safe guarantees the linearizability of the read only request by communicating with the quorum. It is the default and suggested option.
LeaseBased ensures linearizability of the read only request by relying on the leader lease. It can be affected by clock drift. If the clock drift is unbounded, leader might keep the lease longer than it should (clock can move backward/pause without any bound). ReadIndex is not safe in that case.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReadOnlyOption
impl Send for ReadOnlyOption
impl Sync for ReadOnlyOption
impl Unpin for ReadOnlyOption
impl UnwindSafe for ReadOnlyOption
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V