Enum raft::ReadOnlyOption [] [src]

pub enum ReadOnlyOption {
    Safe,
    LeaseBased,
}

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

impl Debug for ReadOnlyOption
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ReadOnlyOption
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for ReadOnlyOption
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ReadOnlyOption
[src]

impl Default for ReadOnlyOption
[src]

[src]

Returns the "default value" for a type. Read more