Enum raft::ReadOnlyOption
[−]
[src]
pub enum ReadOnlyOption { Safe, LeaseBased, }
Variants
Safe
Safe guarantees the linearizability of the read only request by communicating with the quorum. It is the default and suggested option.
LeaseBased
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
impl Debug for ReadOnlyOption
[src]
impl PartialEq for ReadOnlyOption
[src]
fn eq(&self, __arg_0: &ReadOnlyOption) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for ReadOnlyOption
[src]
fn clone(&self) -> ReadOnlyOption
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ReadOnlyOption
[src]
impl Default for ReadOnlyOption
[src]
fn default() -> ReadOnlyOption
[src]
Returns the "default value" for a type. Read more