pub enum RedisError {
Configuration,
Redis(RedisError),
Pool(PoolError<RedisError>),
CreatePool(BuildError),
ConfigError(ConfigError),
}
Expand description
An error type that represents various failure modes when interacting with Redis.
This enum provides a unified error type for Redis-related operations, handling both configuration issues and runtime errors that may occur during Redis interactions.
Variants§
Configuration
An error that occurs during Redis configuration.
Redis(RedisError)
An error that occurs during communication with Redis.
Pool(PoolError<RedisError>)
An error that occurs when interacting with the Redis connection pool.
CreatePool(BuildError)
An error that occurs when creating a Redis connection pool.
ConfigError(ConfigError)
An error that occurs when configuring Redis.
Trait Implementations§
Source§impl Debug for RedisError
impl Debug for RedisError
Source§impl Display for RedisError
impl Display for RedisError
Source§impl Error for RedisError
impl Error for RedisError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BuildError> for RedisError
impl From<BuildError> for RedisError
Auto Trait Implementations§
impl Freeze for RedisError
impl !RefUnwindSafe for RedisError
impl Send for RedisError
impl Sync for RedisError
impl Unpin for RedisError
impl !UnwindSafe for RedisError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more