pub struct FailoverConfig {
pub node_id: String,
pub initial_role: NodeRole,
pub auto_promote: bool,
pub promotion_delay_ms: u64,
pub replicator_config: Option<ReplicatorConfig>,
}Expand description
Configuration for failover coordination
Fields§
§node_id: StringNode identifier
initial_role: NodeRoleInitial role
auto_promote: boolWhether to auto-promote on failover detection
promotion_delay_ms: u64Minimum time to wait after primary failure before promoting (ms)
replicator_config: Option<ReplicatorConfig>Replicator configuration (for primary/after promotion)
Trait Implementations§
Source§impl Clone for FailoverConfig
impl Clone for FailoverConfig
Source§fn clone(&self) -> FailoverConfig
fn clone(&self) -> FailoverConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FailoverConfig
impl Debug for FailoverConfig
Auto Trait Implementations§
impl Freeze for FailoverConfig
impl RefUnwindSafe for FailoverConfig
impl Send for FailoverConfig
impl Sync for FailoverConfig
impl Unpin for FailoverConfig
impl UnwindSafe for FailoverConfig
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