pub enum CommandError {
Error(ByteString),
Output(&'static str, Response),
Protocol(Error),
}
Expand description
Redis command execution errors
Variants§
Error(ByteString)
A redis server error response
Output(&'static str, Response)
A command response parse error
Protocol(Error)
Redis protocol level errors
Trait Implementations§
Source§impl Debug for CommandError
impl Debug for CommandError
Source§impl Display for CommandError
impl Display for CommandError
Source§impl Error for CommandError
impl Error for CommandError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ByteString> for CommandError
impl From<ByteString> for CommandError
Source§fn from(original: ByteString) -> CommandError
fn from(original: ByteString) -> CommandError
Converts to this type from the input type.
Source§impl From<CommandError> for ConnectError
impl From<CommandError> for ConnectError
Source§fn from(original: CommandError) -> ConnectError
fn from(original: CommandError) -> ConnectError
Converts to this type from the input type.
Source§impl From<CommandError> for Error
impl From<CommandError> for Error
Source§fn from(arg: CommandError) -> Self
fn from(arg: CommandError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CommandError
impl From<Error> for CommandError
Source§fn from(original: Error) -> CommandError
fn from(original: Error) -> CommandError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandError
impl !RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl !UnwindSafe for CommandError
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> 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