Struct openraft::StorageIOError
source · pub struct StorageIOError<NID>where
NID: NodeId,{ /* private fields */ }
Expand description
Error that occurs when operating the store.
It indicates a data crash. An application returning this error will shutdown the Openraft node immediately to prevent further damage.
Implementations§
source§impl<NID> StorageIOError<NID>where
NID: NodeId,
impl<NID> StorageIOError<NID>where
NID: NodeId,
pub fn new( subject: ErrorSubject<NID>, verb: ErrorVerb, source: impl Into<AnyError> ) -> Self
pub fn write_log_entry(log_id: LogId<NID>, source: impl Into<AnyError>) -> Self
pub fn read_log_entry(log_id: LogId<NID>, source: impl Into<AnyError>) -> Self
pub fn write_logs(source: impl Into<AnyError>) -> Self
pub fn read_logs(source: impl Into<AnyError>) -> Self
pub fn write_vote(source: impl Into<AnyError>) -> Self
pub fn read_vote(source: impl Into<AnyError>) -> Self
pub fn apply(log_id: LogId<NID>, source: impl Into<AnyError>) -> Self
pub fn write_state_machine(source: impl Into<AnyError>) -> Self
pub fn read_state_machine(source: impl Into<AnyError>) -> Self
pub fn write_snapshot( signature: Option<SnapshotSignature<NID>>, source: impl Into<AnyError> ) -> Self
pub fn read_snapshot( signature: Option<SnapshotSignature<NID>>, source: impl Into<AnyError> ) -> Self
Trait Implementations§
source§impl<NID> Clone for StorageIOError<NID>
impl<NID> Clone for StorageIOError<NID>
source§fn clone(&self) -> StorageIOError<NID>
fn clone(&self) -> StorageIOError<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 StorageIOError<NID>
impl<NID> Debug for StorageIOError<NID>
source§impl<'de, NID> Deserialize<'de> for StorageIOError<NID>where
NID: NodeId,
impl<'de, NID> Deserialize<'de> for StorageIOError<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> Display for StorageIOError<NID>where
NID: NodeId,
impl<NID> Display for StorageIOError<NID>where
NID: NodeId,
source§impl<NID> Error for StorageIOError<NID>
impl<NID> Error for StorageIOError<NID>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<StorageIOError<NID>> for StorageError<NID>where
NID: NodeId,
impl<NID> From<StorageIOError<NID>> for StorageError<NID>where
NID: NodeId,
source§fn from(source: StorageIOError<NID>) -> Self
fn from(source: StorageIOError<NID>) -> Self
Converts to this type from the input type.
source§impl<NID> PartialEq for StorageIOError<NID>
impl<NID> PartialEq for StorageIOError<NID>
source§fn eq(&self, other: &StorageIOError<NID>) -> bool
fn eq(&self, other: &StorageIOError<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NID> Serialize for StorageIOError<NID>where
NID: NodeId,
impl<NID> Serialize for StorageIOError<NID>where
NID: NodeId,
impl<NID> Eq for StorageIOError<NID>
impl<NID> StructuralPartialEq for StorageIOError<NID>where
NID: NodeId,
Auto Trait Implementations§
impl<NID> Freeze for StorageIOError<NID>where
NID: Freeze,
impl<NID> RefUnwindSafe for StorageIOError<NID>where
NID: RefUnwindSafe,
impl<NID> Send for StorageIOError<NID>
impl<NID> Sync for StorageIOError<NID>
impl<NID> Unpin for StorageIOError<NID>where
NID: Unpin,
impl<NID> UnwindSafe for StorageIOError<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