pub enum ReadFromCacheError {
MutexPoisonError(String),
DieselError(Error),
ConnectCacheError(ConnectCacheError),
}Expand description
The enum of errors Cache::read and InnerCache::read can return.
Variants§
MutexPoisonError(String)
Returned when a call to Mutex::lock returns an error.
DieselError(Error)
Returned when a diesel::result::Error is encountered.
ConnectCacheError(ConnectCacheError)
Returned when a ConnectCacheError is encountered.
Trait Implementations§
Source§impl Debug for ReadFromCacheError
impl Debug for ReadFromCacheError
Source§impl Display for ReadFromCacheError
impl Display for ReadFromCacheError
Source§impl Error for ReadFromCacheError
impl Error for ReadFromCacheError
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 From<ConnectCacheError> for ReadFromCacheError
impl From<ConnectCacheError> for ReadFromCacheError
Source§fn from(source: ConnectCacheError) -> Self
fn from(source: ConnectCacheError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ReadFromCacheError
impl From<Error> for ReadFromCacheError
Source§impl From<ReadFromCacheError> for ActionError
impl From<ReadFromCacheError> for ActionError
Source§fn from(source: ReadFromCacheError) -> Self
fn from(source: ReadFromCacheError) -> Self
Converts to this type from the input type.
Source§impl From<ReadFromCacheError> for StringSourceError
impl From<ReadFromCacheError> for StringSourceError
Source§fn from(source: ReadFromCacheError) -> Self
fn from(source: ReadFromCacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadFromCacheError
impl !RefUnwindSafe for ReadFromCacheError
impl Send for ReadFromCacheError
impl Sync for ReadFromCacheError
impl Unpin for ReadFromCacheError
impl !UnwindSafe for ReadFromCacheError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more