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
sourceimpl Fail for AsError
impl Fail for AsError
sourcefn 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moresourceimpl From<ParseIntError> for AsError
impl From<ParseIntError> for AsError
sourcefn from(oe: ParseIntError) -> AsError
fn from(oe: ParseIntError) -> AsError
Converts to this type from the input type.
sourceimpl From<ParseIntegerError> for AsError
impl From<ParseIntegerError> for AsError
sourcefn from(oe: ParseIntegerError) -> AsError
fn from(oe: ParseIntegerError) -> AsError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for AsError
impl Send for AsError
impl Sync for AsError
impl Unpin for AsError
impl !UnwindSafe for AsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more