[][src]Struct async_raft::raft::ConflictOpt

pub struct ConflictOpt {
    pub term: u64,
    pub index: u64,
}

A struct used to implement the conflicting term optimization outlined in §5.3 for log replication.

This value will only be present, and should only be considered, when an AppendEntriesResponse object has a success value of false.

This implementation of Raft uses this value to more quickly synchronize a leader with its followers which may be some distance behind in replication, may have conflicting entries, or which may be new to the cluster.

Fields

term: u64

The term of the most recent entry which does not conflict with the received request.

index: u64

The index of the most recent entry which does not conflict with the received request.

Trait Implementations

impl Debug for ConflictOpt[src]

impl<'de> Deserialize<'de> for ConflictOpt[src]

impl Serialize for ConflictOpt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]