Struct redis::RedisError
[−]
[src]
pub struct RedisError { // some 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 RedisError
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 is_connection_refusal(&self) -> bool
Returns true if this error indicates that the connection was refused. You should generally not rely much on this function unless you are writing unit tests that want to detect if a local server is available.
fn extension_error_code(&self) -> Option<&str>
Returns the extension error code