pub enum Error {
LMDB(Error),
IO(Error),
InvalidBucket,
NotFound,
ReadOnly,
InvalidEncoding,
InvalidConfiguration,
DirectoryNotFound,
Poison,
}
Expand description
Error type
Variants
LMDB(Error)
An LMDB error
IO(Error)
An IO error
InvalidBucket
A non-existant or invalid bucket was used
NotFound
A resource could not be found
ReadOnly
A transaction is readonly but something tried to write to it
InvalidEncoding
An encoding error
InvalidConfiguration
Configuration is invalid
DirectoryNotFound
Directory doesn’t exist
Poison
RwLock is poisoned
Implementations
sourceimpl Error
impl Error
sourcepub fn key_exists_error(&self) -> bool
pub fn key_exists_error(&self) -> bool
Returns true when the error is because of a duplicate key
Trait Implementations
sourceimpl Fail for Error
impl Fail for Error
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
sourcefn from(_: PoisonError<T>) -> Error
fn from(_: PoisonError<T>) -> Error
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more