pub enum ErrorTypes {
Configuration(Box<CreatePoolError>),
Pool(Box<PoolError>),
Redis(Box<RedisError>),
UnknownRedisError,
Serde(Error),
}
Expand description
Enumeration over all possible errors
Variants§
Configuration(Box<CreatePoolError>)
There is something wrong with the redis configuration
Pool(Box<PoolError>)
Could not get a connection from the redis connection pool
Redis(Box<RedisError>)
Returned by the redis server
UnknownRedisError
Unexpected result from the redis server
Serde(Error)
Could not serialize or deserialize a payload
Implementations§
Source§impl ErrorTypes
impl ErrorTypes
Sourcepub fn is_serialize_error(&self) -> bool
pub fn is_serialize_error(&self) -> bool
Test if an error was created in serializing or deserializing data
Trait Implementations§
Source§impl Debug for ErrorTypes
impl Debug for ErrorTypes
Source§impl Display for ErrorTypes
impl Display for ErrorTypes
Source§impl Error for ErrorTypes
impl Error for ErrorTypes
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<CreatePoolError<ConfigError>> for ErrorTypes
impl From<CreatePoolError<ConfigError>> for ErrorTypes
Source§fn from(value: CreatePoolError) -> Self
fn from(value: CreatePoolError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ErrorTypes
impl From<Error> for ErrorTypes
Source§impl From<PoolError<RedisError>> for ErrorTypes
impl From<PoolError<RedisError>> for ErrorTypes
Source§impl From<RedisError> for ErrorTypes
impl From<RedisError> for ErrorTypes
Source§fn from(value: RedisError) -> Self
fn from(value: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorTypes
impl !RefUnwindSafe for ErrorTypes
impl Send for ErrorTypes
impl Sync for ErrorTypes
impl Unpin for ErrorTypes
impl !UnwindSafe for ErrorTypes
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