Enum redb::StorageError
source · #[non_exhaustive]pub enum StorageError {
Corrupted(String),
ValueTooLarge(usize),
Io(Error),
PreviousIo,
LockPoisoned(&'static Location<'static>),
}
Expand description
General errors directly from the storage layer
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Corrupted(String)
The Database is corrupted
ValueTooLarge(usize)
The value being inserted exceeds the maximum of 3GiB
Io(Error)
PreviousIo
LockPoisoned(&'static Location<'static>)
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
1.30.0 · 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 From<Error> for StorageError
impl From<Error> for StorageError
source§fn from(err: Error) -> StorageError
fn from(err: Error) -> StorageError
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for StorageError
impl<T> From<PoisonError<T>> for StorageError
source§fn from(_: PoisonError<T>) -> StorageError
fn from(_: PoisonError<T>) -> StorageError
Converts to this type from the input type.
source§impl From<StorageError> for CommitError
impl From<StorageError> for CommitError
source§fn from(err: StorageError) -> CommitError
fn from(err: StorageError) -> CommitError
Converts to this type from the input type.
source§impl From<StorageError> for CompactionError
impl From<StorageError> for CompactionError
source§fn from(err: StorageError) -> CompactionError
fn from(err: StorageError) -> CompactionError
Converts to this type from the input type.
source§impl From<StorageError> for DatabaseError
impl From<StorageError> for DatabaseError
source§fn from(err: StorageError) -> DatabaseError
fn from(err: StorageError) -> DatabaseError
Converts to this type from the input type.
source§impl From<StorageError> for Error
impl From<StorageError> for Error
source§fn from(err: StorageError) -> Error
fn from(err: StorageError) -> Error
Converts to this type from the input type.
source§impl From<StorageError> for SavepointError
impl From<StorageError> for SavepointError
source§fn from(err: StorageError) -> SavepointError
fn from(err: StorageError) -> SavepointError
Converts to this type from the input type.
source§impl From<StorageError> for TableError
impl From<StorageError> for TableError
source§fn from(err: StorageError) -> TableError
fn from(err: StorageError) -> TableError
Converts to this type from the input type.
source§impl From<StorageError> for TransactionError
impl From<StorageError> for TransactionError
source§fn from(err: StorageError) -> TransactionError
fn from(err: StorageError) -> TransactionError
Converts to this type from the input type.
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