pub enum WriteToCacheError {
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 WriteToCacheError
impl Debug for WriteToCacheError
Source§impl Display for WriteToCacheError
impl Display for WriteToCacheError
Source§impl Error for WriteToCacheError
impl Error for WriteToCacheError
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 WriteToCacheError
impl From<ConnectCacheError> for WriteToCacheError
Source§fn from(source: ConnectCacheError) -> Self
fn from(source: ConnectCacheError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for WriteToCacheError
impl From<Error> for WriteToCacheError
Source§impl From<WriteToCacheError> for ActionError
impl From<WriteToCacheError> for ActionError
Source§fn from(source: WriteToCacheError) -> Self
fn from(source: WriteToCacheError) -> Self
Converts to this type from the input type.
Source§impl From<WriteToCacheError> for StringSourceError
impl From<WriteToCacheError> for StringSourceError
Source§fn from(source: WriteToCacheError) -> Self
fn from(source: WriteToCacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WriteToCacheError
impl !RefUnwindSafe for WriteToCacheError
impl Send for WriteToCacheError
impl Sync for WriteToCacheError
impl Unpin for WriteToCacheError
impl !UnwindSafe for WriteToCacheError
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