pub enum RedisError {
Redis(RedisError),
Nidus(NidusError),
InvalidBound {
field: &'static str,
},
Configuration {
message: &'static str,
},
ShuttingDown,
ShutdownTimeout,
}Expand description
Error returned by Redis adapter operations.
Variants§
Redis(RedisError)
The Redis client or server returned an error.
Nidus(NidusError)
Nidus provider registration failed.
InvalidBound
A required bound was configured as zero.
Configuration
The connection URL is not safe for the selected environment.
ShuttingDown
The provider stopped accepting adapter-owned work during shutdown.
ShutdownTimeout
Admitted Redis operations did not drain before the shutdown deadline.
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<NidusError> for RedisError
impl From<NidusError> for RedisError
Source§fn from(source: NidusError) -> Self
fn from(source: NidusError) -> Self
Converts to this type from the input type.
Source§impl From<RedisError> for RedisError
impl From<RedisError> for RedisError
Source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RedisError
impl !UnwindSafe for RedisError
impl Freeze for RedisError
impl Send for RedisError
impl Sync for RedisError
impl Unpin for RedisError
impl UnsafeUnpin 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