pub enum ClientResult {
Committed,
NotLeader {
leader: Option<NodeId>,
},
Rejected {
error: ProtocolError,
},
}Expand description
The outcome of a client proposal, delivered when the entry that carries it commits and applies (or immediately, when this node cannot accept it).
Variants§
Committed
The proposal committed and applied exactly once.
NotLeader
This node is not the leader. leader is its current hint for the
leader’s identity, when it has one.
Rejected
The proposal was rejected by a protocol rule (such as
Config::max_uncommitted_entries) without appending to the log.
Fields
§
error: ProtocolErrorThe protocol error naming the deciding values.
Trait Implementations§
Source§impl Clone for ClientResult
impl Clone for ClientResult
Source§impl Debug for ClientResult
impl Debug for ClientResult
impl Eq for ClientResult
Source§impl PartialEq for ClientResult
impl PartialEq for ClientResult
impl StructuralPartialEq for ClientResult
Auto Trait Implementations§
impl Forget for ClientResult
impl Freeze for ClientResult
impl Move for ClientResult
impl RefUnwindSafe for ClientResult
impl Send for ClientResult
impl Sync for ClientResult
impl Unpin for ClientResult
impl UnsafeUnpin for ClientResult
impl UnwindSafe for ClientResult
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