pub struct FailoverPolicy {
pub auto_failover: bool,
pub health_check_interval: Duration,
pub health_check_timeout: Duration,
pub failure_threshold: usize,
pub min_quorum: usize,
pub prevent_split_brain: bool,
}Expand description
Failover policy configuration
Fields§
§auto_failover: boolEnable automatic failover
health_check_interval: DurationHealth check interval
health_check_timeout: DurationTimeout for health checks
failure_threshold: usizeNumber of consecutive failures before failover
min_quorum: usizeMinimum quorum size for failover
prevent_split_brain: boolEnable split-brain prevention
Trait Implementations§
Source§impl Clone for FailoverPolicy
impl Clone for FailoverPolicy
Source§fn clone(&self) -> FailoverPolicy
fn clone(&self) -> FailoverPolicy
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 FailoverPolicy
impl Debug for FailoverPolicy
Auto Trait Implementations§
impl Freeze for FailoverPolicy
impl RefUnwindSafe for FailoverPolicy
impl Send for FailoverPolicy
impl Sync for FailoverPolicy
impl Unpin for FailoverPolicy
impl UnwindSafe for FailoverPolicy
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