pub enum Error {
Sled(Error),
CompareAndSwap(CompareAndSwapError),
IO(Error),
InvalidConfiguration,
Poison,
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
SystemTime(SystemTimeError),
Message(String),
}
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
Trait Implementations§
source§impl Error for Error
impl Error for Error
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 From<CompareAndSwapError> for Error
impl From<CompareAndSwapError> for Error
source§fn from(source: CompareAndSwapError) -> Self
fn from(source: CompareAndSwapError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(e: FromUtf8Error) -> Error
fn from(e: FromUtf8Error) -> Error
Converts to this type from the input type.
source§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.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn 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§
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