pub enum AsError {
Show 22 variants
BadConfig(String),
StrParseIntError(ParseIntError),
BadMessage,
BadRequest,
RequestNotSupport,
RequestInlineWithMultiKeys,
BadReply,
CmdTimeout,
ProxyFail,
ConnClosed(String),
RequestReachMaxCycle,
ParseIntError(ParseIntegerError),
WrongClusterSlotsReplyType,
WrongClusterSlotsReplySlot,
ClusterFailDispatch,
IoError(Error),
BackendClosedError(String),
RedirectFailError,
ClusterAllSeedsDie(String),
ConfigError(Error),
SystemError,
None,
}Variants§
BadConfig(String)
StrParseIntError(ParseIntError)
BadMessage
BadRequest
RequestNotSupport
RequestInlineWithMultiKeys
BadReply
CmdTimeout
ProxyFail
ConnClosed(String)
RequestReachMaxCycle
ParseIntError(ParseIntegerError)
WrongClusterSlotsReplyType
WrongClusterSlotsReplySlot
ClusterFailDispatch
IoError(Error)
BackendClosedError(String)
RedirectFailError
ClusterAllSeedsDie(String)
ConfigError(Error)
SystemError
None
Trait Implementations§
Source§impl Fail for AsError
impl Fail for AsError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<ParseIntError> for AsError
impl From<ParseIntError> for AsError
Source§fn from(oe: ParseIntError) -> AsError
fn from(oe: ParseIntError) -> AsError
Converts to this type from the input type.
Source§impl From<ParseIntegerError> for AsError
impl From<ParseIntegerError> for AsError
Source§fn from(oe: ParseIntegerError) -> AsError
fn from(oe: ParseIntegerError) -> AsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsError
impl !RefUnwindSafe for AsError
impl Send for AsError
impl Sync for AsError
impl Unpin for AsError
impl !UnwindSafe for AsError
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