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§
Trait Implementations§
source§impl Fail for Error
impl Fail for Error
source§fn 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
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
source§fn from(_: PoisonError<T>) -> Error
fn from(_: PoisonError<T>) -> Error
Converts to this type from the input type.