pub enum RaftProposalError {
NotLeader(Option<BasicNode>),
Fatal(String),
}Expand description
Error from proposing a command through Raft.
Variants§
NotLeader(Option<BasicNode>)
This node is not the leader. The leader’s address is provided when known.
Fatal(String)
Fatal Raft error.
Trait Implementations§
Source§impl Debug for RaftProposalError
impl Debug for RaftProposalError
Auto Trait Implementations§
impl Freeze for RaftProposalError
impl RefUnwindSafe for RaftProposalError
impl Send for RaftProposalError
impl Sync for RaftProposalError
impl Unpin for RaftProposalError
impl UnsafeUnpin for RaftProposalError
impl UnwindSafe for RaftProposalError
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