pub enum ConfigChange {
AddLearner {
node: NodeId,
},
PromoteVoter {
node: NodeId,
},
RemoveVoter {
node: NodeId,
},
}Expand description
One single-server membership change (docs/ARCHITECTURE.md section 9). Each change is carried by exactly one config log entry; at most one change is ever uncommitted (invariant M-01).
Variants§
AddLearner
The node joins as a learner: it receives replication and snapshots but never votes and never counts toward a quorum.
PromoteVoter
A caught-up learner becomes a voter.
RemoveVoter
A voter or learner leaves the cluster.
Trait Implementations§
Source§impl Clone for ConfigChange
impl Clone for ConfigChange
impl Copy for ConfigChange
Source§impl Debug for ConfigChange
impl Debug for ConfigChange
impl Eq for ConfigChange
Source§impl PartialEq for ConfigChange
impl PartialEq for ConfigChange
impl StructuralPartialEq for ConfigChange
Auto Trait Implementations§
impl Forget for ConfigChange
impl Freeze for ConfigChange
impl Move for ConfigChange
impl RefUnwindSafe for ConfigChange
impl Send for ConfigChange
impl Sync for ConfigChange
impl Unpin for ConfigChange
impl UnsafeUnpin for ConfigChange
impl UnwindSafe for ConfigChange
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