pub enum ConfigResult {
Committed,
NotLeader {
leader: Option<NodeId>,
},
Rejected {
error: ProtocolError,
},
}Expand description
The outcome of a membership change proposal, delivered immediately when the change is rejected or this node is not the leader, and when the config entry commits when it is accepted.
Variants§
Committed
The config entry committed; the new configuration is in force.
NotLeader
This node is not the leader. leader is its current hint for
the leader’s identity, when it has one.
Rejected
The change broke a membership rule; the error names the values that decided the rejection.
Fields
§
error: ProtocolErrorThe rule the change broke.
Trait Implementations§
Source§impl Clone for ConfigResult
impl Clone for ConfigResult
Source§impl Debug for ConfigResult
impl Debug for ConfigResult
impl Eq for ConfigResult
Source§impl PartialEq for ConfigResult
impl PartialEq for ConfigResult
impl StructuralPartialEq for ConfigResult
Auto Trait Implementations§
impl Forget for ConfigResult
impl Freeze for ConfigResult
impl Move for ConfigResult
impl RefUnwindSafe for ConfigResult
impl Send for ConfigResult
impl Sync for ConfigResult
impl Unpin for ConfigResult
impl UnsafeUnpin for ConfigResult
impl UnwindSafe for ConfigResult
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