pub enum OcyError {
Redis(RedisError),
RedisConnection(String),
NoSuchQueue(String),
NoSuchJob(u64),
BadRequest(String),
}
Expand description
Error type used throughout the application.
Variants
Redis(RedisError)
Error occurred during interaction with Redis.
RedisConnection(String)
Error occurred while trying to get a pooled DB connection to Redis.
NoSuchQueue(String)
Operation attempted on queue that does not exist.
NoSuchJob(u64)
Operation attempted on job that does not exist.
BadRequest(String)
Could not complete request with given parameters.
Trait Implementations
sourceimpl Error for OcyError
impl Error for OcyError
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<RedisError> for OcyError
impl From<RedisError> for OcyError
sourcefn from(err: RedisError) -> Self
fn from(err: RedisError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for OcyError
Auto Trait Implementations
impl !RefUnwindSafe for OcyError
impl Send for OcyError
impl Sync for OcyError
impl Unpin for OcyError
impl !UnwindSafe for OcyError
Blanket Implementations
impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to
Self
into a dynamic trait object of Fail
.sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more