pub enum Error {
Response(RedisError),
AuthenticationFailed(RedisError),
Type(RedisError),
ExecAbort(RedisError),
BusyLoading(RedisError),
NoScript(RedisError),
InvalidClientConfig(RedisError),
Io(RedisError),
Extension(RedisError),
// some variants omitted
}Expand description
Represents all the ways that RedisCommand can fail.
This type is not intended to be exhaustively matched, and new variants may be added in the future without a major version bump.
Variants§
Response(RedisError)
The server generated an invalid response.
AuthenticationFailed(RedisError)
The authentication with the server failed.
Type(RedisError)
Operation failed because of a type mismatch.
ExecAbort(RedisError)
A script execution was aborted.
BusyLoading(RedisError)
The server cannot response because it’s loading a dump.
NoScript(RedisError)
A script that was requested does not actually exist.
InvalidClientConfig(RedisError)
An error that was caused because the parameter to the client were wrong.
Io(RedisError)
This kind is returned if the redis error is one that is not native to the system. This is usually the case if the cause is another error.
Extension(RedisError)
An extension error. This is an error created by the server that is not directly understood by the library.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<RedisError> for Error
impl From<RedisError> for Error
Source§fn from(err: RedisError) -> Self
fn from(err: RedisError) -> Self
Auto Trait Implementations§
impl Freeze for Error
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
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>
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>
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