#[non_exhaustive]pub enum RedisErrorKind {
Timeout,
Connection,
Io,
Type,
ExecAbort,
BusyLoading,
TryAgain,
NoScript,
Response,
Authentication,
Cluster,
Other,
}Expand description
Redis 协议层错误类别(与 redis::ErrorKind 对齐,但不暴露上游类型)。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Timeout
超时
Connection
连接断开 / 连接拒绝
Io
IO 错误
Type
类型不匹配
ExecAbort
事务因先前错误被丢弃
BusyLoading
服务端正在加载数据
TryAgain
服务端要求重试
NoScript
脚本不存在
Response
其他服务端响应错误
Authentication
认证失败
Cluster
Cluster 拓扑错误(MOVED/ASK/CLUSTERDOWN 等)
Other
其他
Trait Implementations§
Source§impl Clone for RedisErrorKind
impl Clone for RedisErrorKind
impl Copy for RedisErrorKind
Source§impl Debug for RedisErrorKind
impl Debug for RedisErrorKind
impl Eq for RedisErrorKind
Source§impl PartialEq for RedisErrorKind
impl PartialEq for RedisErrorKind
impl StructuralPartialEq for RedisErrorKind
Auto Trait Implementations§
impl Forget for RedisErrorKind
impl Freeze for RedisErrorKind
impl Move for RedisErrorKind
impl RefUnwindSafe for RedisErrorKind
impl Send for RedisErrorKind
impl Sync for RedisErrorKind
impl Unpin for RedisErrorKind
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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