pub struct Config {
pub election_timeout_min: u64,
pub election_timeout_max: u64,
pub heartbeat_interval: u64,
pub seed: u64,
pub reachability: ReachabilityConfig,
}Expand description
Timing and determinism configuration, in logical ticks.
Fields§
§election_timeout_min: u64Lower bound of the randomized election timeout (ticks).
election_timeout_max: u64Upper bound of the randomized election timeout (ticks).
heartbeat_interval: u64Ticks between leader heartbeats.
seed: u64Seed mixed with the node id for deterministic timeout jitter.
reachability: ReachabilityConfigLeader-side reachability tuning (liveness-vs-membership Tier 2).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more