pub struct ElectionConfig {
pub priority_weights: ElectionWeights,
pub hysteresis: f64,
}Expand description
Election configuration for dynamic role assignment
Fields§
§priority_weights: ElectionWeightsWeights for leadership score calculation
hysteresis: f64Hysteresis factor to prevent role flapping (0.0-1.0) New candidate must score this much better to trigger role change
Trait Implementations§
Source§impl Clone for ElectionConfig
impl Clone for ElectionConfig
Source§fn clone(&self) -> ElectionConfig
fn clone(&self) -> ElectionConfig
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 ElectionConfig
impl Debug for ElectionConfig
Auto Trait Implementations§
impl Freeze for ElectionConfig
impl RefUnwindSafe for ElectionConfig
impl Send for ElectionConfig
impl Sync for ElectionConfig
impl Unpin for ElectionConfig
impl UnsafeUnpin for ElectionConfig
impl UnwindSafe for ElectionConfig
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