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

Trait Implementations

impl PartialEq for RedisError

fn eq(&self, other: &RedisError) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl From<Error> for RedisError

fn from(err: Error) -> RedisError

impl From<Utf8Error> for RedisError

fn from(_: Utf8Error) -> RedisError

impl From<(ErrorKind, &'static str)> for RedisError

fn from((kind, desc): (ErrorKind, &'static str)) -> RedisError

impl From<(ErrorKind, &'static str, String)> for RedisError

fn from((kind, desc, detail): (ErrorKind, &'static str, String)) -> RedisError

impl Error for RedisError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for RedisError

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl Debug for RedisError

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>