Enum openraft::ErrorSubject
source · pub enum ErrorSubject<NID>where
NID: NodeId,{
Store,
Vote,
Logs,
Log(LogId<NID>),
LogIndex(u64),
Apply(LogId<NID>),
StateMachine,
Snapshot(Option<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(Option<SnapshotSignature<NID>>)
Error happened when operating snapshot.
None
Trait Implementations§
source§impl<NID> Clone for ErrorSubject<NID>
impl<NID> Clone for ErrorSubject<NID>
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> Debug for ErrorSubject<NID>
impl<NID> Debug for ErrorSubject<NID>
source§impl<'de, NID> Deserialize<'de> for ErrorSubject<NID>where
NID: NodeId,
impl<'de, NID> Deserialize<'de> for ErrorSubject<NID>where
NID: NodeId,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<NID> PartialEq for ErrorSubject<NID>
impl<NID> PartialEq for ErrorSubject<NID>
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 ==
.source§impl<NID> Serialize for ErrorSubject<NID>where
NID: NodeId,
impl<NID> Serialize for ErrorSubject<NID>where
NID: NodeId,
impl<NID> Eq for ErrorSubject<NID>
impl<NID> StructuralPartialEq for ErrorSubject<NID>where
NID: NodeId,
Auto Trait Implementations§
impl<NID> Freeze for ErrorSubject<NID>where
NID: Freeze,
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<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