Enum raft::prelude::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 Debug for ReadOnlyOption
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ReadOnlyOption
[src]
impl PartialEq for ReadOnlyOption
fn eq(&self, other: &ReadOnlyOption) -> bool
[src]
fn eq(&self, other: &ReadOnlyOption) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for ReadOnlyOption
[src]
impl Clone for ReadOnlyOption
fn clone(&self) -> ReadOnlyOption
[src]
fn clone(&self) -> ReadOnlyOption
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ReadOnlyOption
[src]
impl Copy for ReadOnlyOption
impl Default for ReadOnlyOption
[src]
impl Default for ReadOnlyOption
fn default() -> ReadOnlyOption
[src]
fn default() -> ReadOnlyOption
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for ReadOnlyOption
impl Send for ReadOnlyOption
impl Sync for ReadOnlyOption
impl Sync for ReadOnlyOption