pub enum RedisBackendError {
GetSessions(RedisError),
GetSessionAge(RedisError),
ParseSessionAge(ParseIntError),
ParseSessionId(FromUtf8Error),
ReadValue(RedisError),
RemoveSession(RedisError),
RemoveValue(RedisError),
SessionAgeFromUtf8(FromUtf8Error),
SetSessionTimestamp(SystemTimeError),
WriteValue(RedisError),
}
Available on crate feature
session
only.Expand description
An error occurred in redis backend
Variants§
GetSessions(RedisError)
Failed to get sessions list
GetSessionAge(RedisError)
Failed to get session age
ParseSessionAge(ParseIntError)
Failed to parse session age
ParseSessionId(FromUtf8Error)
Failed to parse session ID
ReadValue(RedisError)
Failed to read value
RemoveSession(RedisError)
Failed to remove session
RemoveValue(RedisError)
Failed to remove value
SessionAgeFromUtf8(FromUtf8Error)
Failed to read session age
SetSessionTimestamp(SystemTimeError)
Failed to set session timestamp
An error occurred when getting system time
WriteValue(RedisError)
Failed to write value
Trait Implementations§
source§impl Debug for RedisBackendError
impl Debug for RedisBackendError
source§impl Display for RedisBackendError
impl Display for RedisBackendError
source§impl Error for RedisBackendError
impl Error for RedisBackendError
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()
Auto Trait Implementations§
impl Freeze for RedisBackendError
impl !RefUnwindSafe for RedisBackendError
impl Send for RedisBackendError
impl Sync for RedisBackendError
impl Unpin for RedisBackendError
impl !UnwindSafe for RedisBackendError
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 more