Struct td_proto_rust::values::RpError
[−]
[src]
pub struct RpError { /* fields omitted */ }
Represents a redis error. For the most part you should be using the Error trait to interact with this rather than the actual struct.
Methods
impl RpError
[src]
Indicates a general failure in the library.
fn kind(&self) -> ErrorKind
Returns the kind of the error.
fn category(&self) -> &str
Returns the name of the error category for display purposes.
fn is_io_error(&self) -> bool
Indicates that this failure is an IO failure.
fn extension_error_code(&self) -> Option<&str>
Returns the extension error code
fn extension_error_detail(&self) -> Option<&str>
Returns the extension error detail
Trait Implementations
impl PartialEq for RpError
[src]
fn eq(&self, other: &RpError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl From<Error> for RpError
[src]
impl From<(ErrorKind, &'static str)> for RpError
[src]
impl From<(ErrorKind, &'static str, String)> for RpError
[src]
fn from((kind, desc, detail): (ErrorKind, &'static str, String)) -> RpError
Performs the conversion.
impl Error for RpError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for RpError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more