Struct redis_sk::RedisError [−][src]
pub struct RedisError { /* fields omitted */ }
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
Indicates a general failure in the library.
Indicates that this failure is an IO failure.
Indicates that this is a cluster error.
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.
Returns true if error was caused by I/O time out. Note that this may not be accurate depending on platform.
Returns true if error was caused by a dropped connection.
Returns the node the error refers to.
This returns (addr, slot_id)
.
👎 Deprecated: use code() instead
use code() instead
Returns the extension error code.
This method should not be used because every time the redis library
adds support for a new error code it would disappear form this method.
code()
always returns the code.
Trait Implementations
use the Display impl or to_string()
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RedisError
impl Send for RedisError
impl Sync for RedisError
impl Unpin for RedisError
impl !UnwindSafe for RedisError