pub enum Error {
Show 14 variants
Sled(Error),
CompareAndSwap(CompareAndSwapError),
IO(Error),
InvalidConfiguration,
Poison,
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
SystemTime(SystemTimeError),
Message(String),
Json(Error),
MsgpackEncode(Error),
MsgpackDecode(Error),
Bincode(Box<ErrorKind>),
Lexpr(Error),
}
Expand description
Error type
Variants
Sled(Error)
A Sled error
CompareAndSwap(CompareAndSwapError)
Error when calling Bucket::compare_and_swap
IO(Error)
An IO error
InvalidConfiguration
Configuration is invalid
Poison
RwLock is poisoned
Utf8(Utf8Error)
UTF8 Error
FromUtf8(FromUtf8Error)
String UTF8 Error
SystemTime(SystemTimeError)
SystemTime
Message(String)
Generic message
Json(Error)
Json error
MsgpackEncode(Error)
Msgpack encoding error
MsgpackDecode(Error)
Msgpack decoding error
Bincode(Box<ErrorKind>)
Bincode error
Lexpr(Error)
Lexpr error
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<CompareAndSwapError> for Error
impl From<CompareAndSwapError> for Error
sourcefn from(source: CompareAndSwapError) -> Self
fn from(source: CompareAndSwapError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ConflictableTransactionError<Error>
impl From<Error> for ConflictableTransactionError<Error>
sourcefn from(e: Error) -> ConflictableTransactionError<Error>
fn from(e: Error) -> ConflictableTransactionError<Error>
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(e: FromUtf8Error) -> Error
fn from(e: FromUtf8Error) -> Error
Converts to this type from the input type.
sourceimpl<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.
sourceimpl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
sourcefn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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