pub struct RedisErrorInfo {
pub kind: RedisErrorKind,
pub retry_method: RedisRetryMethod,
pub message: String,
}Expand description
结构化 Redis 错误信息。
Fields§
§kind: RedisErrorKind协议层错误类别
retry_method: RedisRetryMethod建议的重试方式
message: String错误消息(不含命令参数与 key)
Implementations§
Source§impl RedisErrorInfo
impl RedisErrorInfo
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
是否为可重试错误。
Trait Implementations§
Source§impl Clone for RedisErrorInfo
impl Clone for RedisErrorInfo
Source§impl Debug for RedisErrorInfo
impl Debug for RedisErrorInfo
Auto Trait Implementations§
impl Forget for RedisErrorInfo
impl Freeze for RedisErrorInfo
impl Move for RedisErrorInfo
impl RefUnwindSafe for RedisErrorInfo
impl Send for RedisErrorInfo
impl Sync for RedisErrorInfo
impl Unpin for RedisErrorInfo
impl UnsafeUnpin for RedisErrorInfo
impl UnwindSafe for RedisErrorInfo
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<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