Enum redis_driver::Error
source · pub enum Error {
Client(String),
Config(String),
Aborted,
Sentinel(String),
Redis(RedisError),
IO(Error),
Retry(SmallVec<[RetryReason; 1]>),
}
Expand description
All error kinds
Variants
Client(String)
Raised if an error occurs within the driver
Config(String)
Raised if an error occurs in the Config
parsing
Aborted
A transaction has been aborted
Sentinel(String)
Raised if an error occurs when contacting Sentinel instances
Redis(RedisError)
Error returned by the Redis sercer
IO(Error)
IO error when connecting the Redis server
Retry(SmallVec<[RetryReason; 1]>)
Internal error to trigger retry sending the command
Trait Implementations
sourceimpl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
sourcefn from(e: ParseFloatError) -> Self
fn from(e: ParseFloatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more