Enum fred::error::RedisErrorKind
source · pub enum RedisErrorKind {
Show 17 variants
Config,
Auth,
IO,
InvalidCommand,
InvalidArgument,
Url,
Protocol,
Tls,
Canceled,
Unknown,
Timeout,
Cluster,
Parse,
Sentinel,
NotFound,
Backpressure,
Replica,
}Expand description
An enum representing the type of error from Redis.
Variants§
Config
A fatal client configuration error. These errors will shutdown a client and break out of any reconnection attempts.
Auth
An authentication error.
IO
An IO error with the underlying connection.
InvalidCommand
An invalid command, such as trying to perform a set command on a client after calling subscribe.
InvalidArgument
An invalid argument or set of arguments to a command.
Url
An invalid URL error.
Protocol
A protocol error such as an invalid or unexpected frame from the server.
Tls
enable-native-tls or enable-rustls or enable-rustls-ring only.A TLS error.
Canceled
An error indicating the request was canceled.
Unknown
An unknown error.
Timeout
A timeout error.
Cluster
An error used to indicate that the cluster’s state has changed. These errors will show up on the on_error
error stream even though the client will automatically attempt to recover.
Parse
A parser error.
Sentinel
An error communicating with redis sentinel.
NotFound
An error indicating a value was not found, often used when trying to cast a nil response from the server to a
non-nullable type.
Backpressure
An error indicating that the caller should apply backpressure and retry the command.
Replica
replicas only.An error associated with a replica node.
Implementations§
Trait Implementations§
source§impl Clone for RedisErrorKind
impl Clone for RedisErrorKind
source§fn clone(&self) -> RedisErrorKind
fn clone(&self) -> RedisErrorKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RedisErrorKind
impl Debug for RedisErrorKind
source§impl PartialEq for RedisErrorKind
impl PartialEq for RedisErrorKind
impl Eq for RedisErrorKind
impl StructuralPartialEq for RedisErrorKind
Auto Trait Implementations§
impl Freeze for RedisErrorKind
impl RefUnwindSafe for RedisErrorKind
impl Send for RedisErrorKind
impl Sync for RedisErrorKind
impl Unpin for RedisErrorKind
impl UnwindSafe for RedisErrorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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