pub enum RedisError {
Io(Error),
Utf8(Utf8Error),
ParseInt(ParseIntError),
Parse(ParsingError),
Response(String),
MpscRecv(RecvError),
MpscSendBytes(SendError<(SenderType, u32, Vec<u8>)>),
MpscSendPubSubBytes(SendError<(PubSubType, u32, Vec<u8>)>),
MpscTryRecv(TryRecvError),
}
Variants§
Io(Error)
Utf8(Utf8Error)
ParseInt(ParseIntError)
Parse(ParsingError)
Response(String)
MpscRecv(RecvError)
MpscSendBytes(SendError<(SenderType, u32, Vec<u8>)>)
MpscSendPubSubBytes(SendError<(PubSubType, u32, Vec<u8>)>)
MpscTryRecv(TryRecvError)
Trait Implementations§
Source§impl Clone for RedisError
impl Clone for RedisError
Source§fn clone(&self) -> RedisError
fn clone(&self) -> RedisError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RedisError
impl Debug for RedisError
Source§impl Display for RedisError
impl Display for RedisError
Source§impl Error for RedisError
impl Error for RedisError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for RedisError
impl From<Error> for RedisError
Source§fn from(err: Error) -> RedisError
fn from(err: Error) -> RedisError
Converts to this type from the input type.
Source§impl From<ParseIntError> for RedisError
impl From<ParseIntError> for RedisError
Source§fn from(err: ParseIntError) -> RedisError
fn from(err: ParseIntError) -> RedisError
Converts to this type from the input type.
Source§impl From<ParsingError> for RedisError
impl From<ParsingError> for RedisError
Source§fn from(err: ParsingError) -> RedisError
fn from(err: ParsingError) -> RedisError
Converts to this type from the input type.
Source§impl From<RecvError> for RedisError
impl From<RecvError> for RedisError
Source§fn from(err: RecvError) -> RedisError
fn from(err: RecvError) -> RedisError
Converts to this type from the input type.
Source§impl From<SendError<(PubSubType, u32, Vec<u8>)>> for RedisError
impl From<SendError<(PubSubType, u32, Vec<u8>)>> for RedisError
Source§fn from(err: SendError<(PubSubType, u32, Vec<u8>)>) -> RedisError
fn from(err: SendError<(PubSubType, u32, Vec<u8>)>) -> RedisError
Converts to this type from the input type.
Source§impl From<SendError<(SenderType, u32, Vec<u8>)>> for RedisError
impl From<SendError<(SenderType, u32, Vec<u8>)>> for RedisError
Source§fn from(err: SendError<(SenderType, u32, Vec<u8>)>) -> RedisError
fn from(err: SendError<(SenderType, u32, Vec<u8>)>) -> RedisError
Converts to this type from the input type.
Source§impl From<String> for RedisError
impl From<String> for RedisError
Source§fn from(err: String) -> RedisError
fn from(err: String) -> RedisError
Converts to this type from the input type.
Source§impl From<TryRecvError> for RedisError
impl From<TryRecvError> for RedisError
Source§fn from(err: TryRecvError) -> RedisError
fn from(err: TryRecvError) -> RedisError
Converts to this type from the input type.
Source§impl From<Utf8Error> for RedisError
impl From<Utf8Error> for RedisError
Source§fn from(err: Utf8Error) -> RedisError
fn from(err: Utf8Error) -> RedisError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RedisError
impl !RefUnwindSafe for RedisError
impl Send for RedisError
impl Sync for RedisError
impl Unpin for RedisError
impl !UnwindSafe for RedisError
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