Enum ntex_redis::errors::CommandError
source · 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 Clone for CommandError
impl Clone for CommandError
source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
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 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)>
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<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 !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