pub enum ConnectCacheError {
ConnectionError(ConnectionError),
IoError(Error),
DieselError(Error),
}Expand description
The enum of errors that InnerCache::connect can return.
Variants§
ConnectionError(ConnectionError)
Returned when a diesel::ConnectionError is encountered.
IoError(Error)
Returned when a std::io::Error is encountered.
DieselError(Error)
Returned when a diesel::result::Error is encountered.
Trait Implementations§
Source§impl Debug for ConnectCacheError
impl Debug for ConnectCacheError
Source§impl Display for ConnectCacheError
impl Display for ConnectCacheError
Source§impl Error for ConnectCacheError
impl Error for ConnectCacheError
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<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<ConnectionError> for ConnectCacheError
impl From<ConnectionError> for ConnectCacheError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ConnectCacheError
impl From<Error> for ConnectCacheError
Auto Trait Implementations§
impl Freeze for ConnectCacheError
impl !RefUnwindSafe for ConnectCacheError
impl Send for ConnectCacheError
impl Sync for ConnectCacheError
impl Unpin for ConnectCacheError
impl !UnwindSafe for ConnectCacheError
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