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
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)>
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<T> From<Error> for ConflictableTransactionError<T>
impl<T> From<Error> for ConflictableTransactionError<T>
Source§fn from(error: Error) -> ConflictableTransactionError<T>
fn from(error: Error) -> ConflictableTransactionError<T>
Converts to this type from the input type.
Source§impl<T> From<Error> for TransactionError<T>
impl<T> From<Error> for TransactionError<T>
Source§fn from(error: Error) -> TransactionError<T>
fn from(error: Error) -> TransactionError<T>
Converts to this type from the input type.
Source§impl From<Error> for UnabortableTransactionError
impl From<Error> for UnabortableTransactionError
Source§fn from(error: Error) -> UnabortableTransactionError
fn from(error: Error) -> UnabortableTransactionError
Converts to this type from the input type.
impl Eq for Error
Auto Trait Implementations§
impl Freeze for Error
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