pub enum Error {
CollectionNotFound(IVec),
Unsupported(String),
ReportableBug(String),
Io(Error),
Corruption {
at: Option<DiskPtr>,
bt: (),
},
}
Expand description
An Error type encapsulating various issues that may come up
in the operation of a Db
.
Variants§
CollectionNotFound(IVec)
The underlying collection no longer exists.
Unsupported(String)
The system has been used in an unsupported way.
ReportableBug(String)
An unexpected bug has happened. Please open an issue on github!
Io(Error)
A read or write error has happened when interacting with the file system.
Corruption
Fields
Corruption has been detected in the storage file.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<T> From<Error> for ConflictableTransactionError<T>
impl<T> From<Error> for ConflictableTransactionError<T>
source§impl<T> From<Error> for TransactionError<T>
impl<T> From<Error> for TransactionError<T>
source§impl From<Error> for UnabortableTransactionError
impl From<Error> for UnabortableTransactionError
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Eq for Error
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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