Enum openraft::ErrorSubject
source · pub enum ErrorSubject<NID>where
NID: NodeId,{
Store,
Vote,
Logs,
Log(LogId<NID>),
LogIndex(u64),
Apply(LogId<NID>),
StateMachine,
Snapshot(SnapshotSignature<NID>),
None,
}
Variants§
Store
A general storage error
Vote
HardState related error.
Logs
Error that is happened when operating a series of log entries
Log(LogId<NID>)
Error about a single log entry
LogIndex(u64)
Error about a single log entry without knowing the log term.
Apply(LogId<NID>)
Error happened when applying a log entry
StateMachine
Error happened when operating state machine.
Snapshot(SnapshotSignature<NID>)
Error happened when operating snapshot.
None
Trait Implementations§
source§impl<NID> Clone for ErrorSubject<NID>where
NID: NodeId + Clone,
impl<NID> Clone for ErrorSubject<NID>where NID: NodeId + Clone,
source§fn clone(&self) -> ErrorSubject<NID>
fn clone(&self) -> ErrorSubject<NID>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<NID> PartialEq<ErrorSubject<NID>> for ErrorSubject<NID>where
NID: NodeId + PartialEq,
impl<NID> PartialEq<ErrorSubject<NID>> for ErrorSubject<NID>where NID: NodeId + PartialEq,
source§fn eq(&self, other: &ErrorSubject<NID>) -> bool
fn eq(&self, other: &ErrorSubject<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<NID> Eq for ErrorSubject<NID>where NID: NodeId + Eq,
impl<NID> StructuralEq for ErrorSubject<NID>where NID: NodeId,
impl<NID> StructuralPartialEq for ErrorSubject<NID>where NID: NodeId,
Auto Trait Implementations§
impl<NID> RefUnwindSafe for ErrorSubject<NID>where NID: RefUnwindSafe,
impl<NID> Send for ErrorSubject<NID>
impl<NID> Sync for ErrorSubject<NID>
impl<NID> Unpin for ErrorSubject<NID>where NID: Unpin,
impl<NID> UnwindSafe for ErrorSubject<NID>where NID: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.