pub enum ConnectionError {
ClientCreation(RedisError),
PoolCreation(String),
ConnectionAcquisition(RedisError),
ConnectionManager(RedisError),
Configuration(String),
Timeout,
Network(String),
Serialization(String),
Deserialization(String),
}Expand description
Redis 连接相关的错误类型
Variants§
ClientCreation(RedisError)
Redis 客户端创建失败
PoolCreation(String)
连接池创建失败
ConnectionAcquisition(RedisError)
连接获取失败
ConnectionManager(RedisError)
连接管理器错误
Configuration(String)
配置错误
Timeout
连接超时
Network(String)
网络错误
Serialization(String)
序列化错误
Deserialization(String)
反序列化错误
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl Display for ConnectionError
impl Display for ConnectionError
Source§impl Error for ConnectionError
impl Error for ConnectionError
1.30.0 · 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<RedisError> for ConnectionError
impl From<RedisError> for ConnectionError
Source§fn from(err: RedisError) -> Self
fn from(err: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionError
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl !UnwindSafe for ConnectionError
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