pub enum OxanusError {
GenericError(String),
JsonError(Error),
SemaphoreError(AcquireError),
JobFactoryError(String),
TokioJoinError(JoinError),
TryFromIntError(TryFromIntError),
StdIoError(Error),
DeadpoolRedisError(RedisError),
DeadpoolRedisPoolError(PoolError),
DeadpoolRedisCreatePoolError(CreatePoolError),
ConfigRedisNotConfigured,
JobPanicked(String),
}Variants§
GenericError(String)
JsonError(Error)
SemaphoreError(AcquireError)
JobFactoryError(String)
TokioJoinError(JoinError)
TryFromIntError(TryFromIntError)
StdIoError(Error)
DeadpoolRedisError(RedisError)
DeadpoolRedisPoolError(PoolError)
DeadpoolRedisCreatePoolError(CreatePoolError)
ConfigRedisNotConfigured
JobPanicked(String)
Trait Implementations§
Source§impl Debug for OxanusError
impl Debug for OxanusError
Source§impl Display for OxanusError
impl Display for OxanusError
Source§impl Error for OxanusError
impl Error for OxanusError
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<AcquireError> for OxanusError
impl From<AcquireError> for OxanusError
Source§fn from(source: AcquireError) -> Self
fn from(source: AcquireError) -> Self
Converts to this type from the input type.
Source§impl From<CreatePoolError<ConfigError>> for OxanusError
impl From<CreatePoolError<ConfigError>> for OxanusError
Source§fn from(source: CreatePoolError) -> Self
fn from(source: CreatePoolError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OxanusError
impl From<Error> for OxanusError
Source§impl From<Error> for OxanusError
impl From<Error> for OxanusError
Source§impl From<JoinError> for OxanusError
impl From<JoinError> for OxanusError
Source§impl From<PoolError<RedisError>> for OxanusError
impl From<PoolError<RedisError>> for OxanusError
Source§impl From<RedisError> for OxanusError
impl From<RedisError> for OxanusError
Source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for OxanusError
impl From<TryFromIntError> for OxanusError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OxanusError
impl !RefUnwindSafe for OxanusError
impl Send for OxanusError
impl Sync for OxanusError
impl Unpin for OxanusError
impl !UnwindSafe for OxanusError
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