pub struct RpError { /* private fields */ }
Expand description
Represents a redis error. For the most part you should be using the Error trait to interact with this rather than the actual struct.
Implementations§
Source§impl RpError
impl RpError
Indicates a general failure in the library.
Sourcepub fn is_io_error(&self) -> bool
pub fn is_io_error(&self) -> bool
Indicates that this failure is an IO failure.
Sourcepub fn extension_error_code(&self) -> Option<&str>
pub fn extension_error_code(&self) -> Option<&str>
Returns the extension error code
Sourcepub fn extension_error_detail(&self) -> Option<&str>
pub fn extension_error_detail(&self) -> Option<&str>
Returns the extension error detail
Trait Implementations§
Source§impl Error for RpError
impl Error for RpError
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
Auto Trait Implementations§
impl Freeze for RpError
impl !RefUnwindSafe for RpError
impl Send for RpError
impl Sync for RpError
impl Unpin for RpError
impl !UnwindSafe for RpError
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