#[non_exhaustive]pub enum ErrorKind {
Show 13 variants
Parse,
AuthenticationFailed,
UnexpectedReturnType,
InvalidClientConfig,
Io,
Client,
Extension,
MasterNameNotFoundBySentinel,
NoValidReplicasFoundBySentinel,
EmptySentinelList,
ClusterConnectionNotFound,
Server(ServerErrorKind),
RESP3NotSupported,
}Expand description
An enum of all error kinds.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Parse
The parser failed to parse the server response.
AuthenticationFailed
The authentication with the server failed.
UnexpectedReturnType
Operation failed because of a type mismatch.
InvalidClientConfig
An error that was caused because the parameter to the client were wrong.
Io
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.
Client
An error raised that was identified on the client before execution.
Extension
An extension error. This is an error created by the server that is not directly understood by the library.
MasterNameNotFoundBySentinel
Requested name not found among masters returned by the sentinels
NoValidReplicasFoundBySentinel
No valid replicas found in the sentinels, for a given master name
EmptySentinelList
At least one sentinel connection info is required
ClusterConnectionNotFound
Used when a cluster connection cannot find a connection to a valid node.
Server(ServerErrorKind)
An error returned from the server
RESP3NotSupported
Redis Servers prior to v6.0.0 doesn’t support RESP3. Try disabling resp3 option
Trait Implementations§
Source§impl From<ServerErrorKind> for ErrorKind
impl From<ServerErrorKind> for ErrorKind
Source§fn from(kind: ServerErrorKind) -> Self
fn from(kind: ServerErrorKind) -> Self
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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§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