Struct tunm_proto::values::RpError
source · 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 cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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()