Struct bollard::service::SwarmSpecRaft[][src]

pub struct SwarmSpecRaft {
    pub snapshot_interval: Option<u64>,
    pub keep_old_snapshots: Option<u64>,
    pub log_entries_for_slow_followers: Option<u64>,
    pub election_tick: Option<i64>,
    pub heartbeat_tick: Option<i64>,
}

Raft configuration.

Fields

snapshot_interval: Option<u64>

The number of log entries between snapshots.

keep_old_snapshots: Option<u64>

The number of snapshots to keep beyond the current snapshot.

log_entries_for_slow_followers: Option<u64>

The number of log entries to keep around to sync up slow followers after a snapshot is created.

election_tick: Option<i64>

The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. ElectionTick must be greater than HeartbeatTick. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed.

heartbeat_tick: Option<i64>

The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed.

Trait Implementations

impl Clone for SwarmSpecRaft[src]

impl Debug for SwarmSpecRaft[src]

impl Default for SwarmSpecRaft[src]

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

impl PartialEq<SwarmSpecRaft> for SwarmSpecRaft[src]

impl Serialize for SwarmSpecRaft[src]

impl StructuralPartialEq for SwarmSpecRaft[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.