pub enum ConsensusError {
StateTransition(StateTransitionError),
Election(ElectionError),
Replication(ReplicationError),
Membership(MembershipError),
}
Variants§
StateTransition(StateTransitionError)
Illegal Raft node state transitions
Election(ElectionError)
Leader election failures (Section 5.2 Raft paper)
Replication(ReplicationError)
Log replication failures (Section 5.3 Raft paper)
Membership(MembershipError)
Cluster membership change failures (Section 6 Raft paper)
Trait Implementations§
Source§impl Debug for ConsensusError
impl Debug for ConsensusError
Source§impl Display for ConsensusError
impl Display for ConsensusError
Source§impl Error for ConsensusError
impl Error for ConsensusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConsensusError> for Error
impl From<ConsensusError> for Error
Source§fn from(source: ConsensusError) -> Self
fn from(source: ConsensusError) -> Self
Converts to this type from the input type.
Source§impl From<ElectionError> for ConsensusError
impl From<ElectionError> for ConsensusError
Source§fn from(source: ElectionError) -> Self
fn from(source: ElectionError) -> Self
Converts to this type from the input type.
Source§impl From<MembershipError> for ConsensusError
impl From<MembershipError> for ConsensusError
Source§fn from(source: MembershipError) -> Self
fn from(source: MembershipError) -> Self
Converts to this type from the input type.
Source§impl From<ReplicationError> for ConsensusError
impl From<ReplicationError> for ConsensusError
Source§fn from(source: ReplicationError) -> Self
fn from(source: ReplicationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConsensusError
impl RefUnwindSafe for ConsensusError
impl Send for ConsensusError
impl Sync for ConsensusError
impl Unpin for ConsensusError
impl UnwindSafe for ConsensusError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request