pub enum Fatal<NID>where
NID: NodeId,{
StorageError(StorageError<NID>),
Panicked,
Stopped,
}
Expand description
Fatal is unrecoverable and shuts down raft at once.
Variants§
Trait Implementations§
source§impl<'de, NID> Deserialize<'de> for Fatal<NID>where
NID: NodeId,
impl<'de, NID> Deserialize<'de> for Fatal<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> Error for Fatal<NID>
impl<NID> Error for Fatal<NID>
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<NID> From<StorageError<NID>> for Fatal<NID>where
NID: NodeId,
impl<NID> From<StorageError<NID>> for Fatal<NID>where
NID: NodeId,
source§fn from(source: StorageError<NID>) -> Self
fn from(source: StorageError<NID>) -> Self
Converts to this type from the input type.
impl<NID> Eq for Fatal<NID>
impl<NID> StructuralPartialEq for Fatal<NID>where
NID: NodeId,
Auto Trait Implementations§
impl<NID> Freeze for Fatal<NID>where
NID: Freeze,
impl<NID> RefUnwindSafe for Fatal<NID>where
NID: RefUnwindSafe,
impl<NID> Send for Fatal<NID>
impl<NID> Sync for Fatal<NID>
impl<NID> Unpin for Fatal<NID>where
NID: Unpin,
impl<NID> UnwindSafe for Fatal<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)