Enum jopemachine_raft::StorageError
source · pub enum StorageError {
Compacted,
Unavailable,
LogTemporarilyUnavailable,
SnapshotOutOfDate,
SnapshotTemporarilyUnavailable,
Other(Box<dyn Error + Sync + Send>),
}
Expand description
An error with the storage.
Variants§
Compacted
The storage was compacted and not accessible
The log is not available.
The log is being fetched.
SnapshotOutOfDate
The snapshot is out of date.
The snapshot is being created.
Other(Box<dyn Error + Sync + Send>)
Some other error occurred.
Trait Implementations§
source§impl Debug for StorageError
impl Debug for StorageError
source§impl Display for StorageError
impl Display for StorageError
source§impl Error for StorageError
impl Error for StorageError
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<StorageError> for Error
impl From<StorageError> for Error
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl PartialEq for StorageError
impl PartialEq for StorageError
Auto Trait Implementations§
impl Freeze for StorageError
impl !RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl !UnwindSafe for StorageError
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