#[non_exhaustive]pub enum ErrorKind {
Show 19 variants
Client(ClientError),
CacheWrongKeyType,
Aborted,
Sentinel(String),
Redis(RedisError),
IO(Arc<Error>),
Tls(Error),
InvalidDnsName(Arc<InvalidDnsNameError>),
Timeout(TimeoutKind),
EOF,
TokioJoin(Arc<JoinError>),
OneshotCanceled(RecvError),
MpscSend(SendError),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
ParseFloat(ParseFloatError),
ParseInt(ParseIntError),
TokioBroadcastSend(Arc<SendError<()>>),
DisconnectedByPeer,
}Expand description
What an Error is, independently of the command it belongs to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Client(ClientError)
Raised if an error occurs within the driver
CacheWrongKeyType
Raised if a required cache key is in the wrong type
Aborted
A transaction has been aborted
Sentinel(String)
Raised if an error occurs when contacting Sentinel instances
Redis(RedisError)
Error returned by the Redis server
IO(Arc<Error>)
IO error when connecting the Redis server
Tls(Error)
rustls only.Raised by the TLS library
InvalidDnsName(Arc<InvalidDnsNameError>)
rustls only.Invalid Dns name (rustls)
Timeout(TimeoutKind)
A deadline expired before the operation completed
EOF
Raised when end of stream is reached
TokioJoin(Arc<JoinError>)
tokio-runtime only.Raised when a tokio join error occurs
OneshotCanceled(RecvError)
Raised when oneshot channel is canceled
MpscSend(SendError)
Raised when mpsc send error occurs
Utf8(Utf8Error)
Raised when UTF-8 error occurs
FromUtf8(FromUtf8Error)
Raised when FromUtf8 error occurs
ParseFloat(ParseFloatError)
Raised when parse float error occurs
ParseInt(ParseIntError)
Raised when parse int error occurs
TokioBroadcastSend(Arc<SendError<()>>)
Raised when tokio broadcast send error occurs
DisconnectedByPeer
Disconnected by peer
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
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
use the Display impl or to_string()
Source§impl From<ClientError> for ErrorKind
impl From<ClientError> for ErrorKind
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Source§impl From<FromUtf8Error> for ErrorKind
impl From<FromUtf8Error> for ErrorKind
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Source§impl From<InvalidDnsNameError> for ErrorKind
Available on crate feature rustls only.
impl From<InvalidDnsNameError> for ErrorKind
rustls only.