Struct docker_api::models::SwarmSpecRaftInlineItem
source · [−]pub struct SwarmSpecRaftInlineItem {
pub election_tick: Option<usize>,
pub heartbeat_tick: Option<usize>,
pub keep_old_snapshots: Option<u64>,
pub log_entries_for_slow_followers: Option<u64>,
pub snapshot_interval: Option<u64>,
}
Expand description
Raft configuration.
Fields
election_tick: Option<usize>
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<usize>
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.
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.
snapshot_interval: Option<u64>
The number of log entries between snapshots.
Trait Implementations
sourceimpl Clone for SwarmSpecRaftInlineItem
impl Clone for SwarmSpecRaftInlineItem
sourcefn clone(&self) -> SwarmSpecRaftInlineItem
fn clone(&self) -> SwarmSpecRaftInlineItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwarmSpecRaftInlineItem
impl Debug for SwarmSpecRaftInlineItem
sourceimpl<'de> Deserialize<'de> for SwarmSpecRaftInlineItem
impl<'de> Deserialize<'de> for SwarmSpecRaftInlineItem
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SwarmSpecRaftInlineItem, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SwarmSpecRaftInlineItem, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SwarmSpecRaftInlineItem> for SwarmSpecRaftInlineItem
impl PartialEq<SwarmSpecRaftInlineItem> for SwarmSpecRaftInlineItem
sourcefn eq(&self, other: &SwarmSpecRaftInlineItem) -> bool
fn eq(&self, other: &SwarmSpecRaftInlineItem) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for SwarmSpecRaftInlineItem
impl Serialize for SwarmSpecRaftInlineItem
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SwarmSpecRaftInlineItem
Auto Trait Implementations
impl RefUnwindSafe for SwarmSpecRaftInlineItem
impl Send for SwarmSpecRaftInlineItem
impl Sync for SwarmSpecRaftInlineItem
impl Unpin for SwarmSpecRaftInlineItem
impl UnwindSafe for SwarmSpecRaftInlineItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more