#[non_exhaustive]pub enum QueueError {
UnknownJob {
job_type: String,
},
FailedJobNotFound {
id: String,
},
Payload(Error),
Db(DbError),
Orm(OrmError),
Store(BoxError),
ShutDown,
NoDatabase,
}Expand description
What can go wrong when queueing or working jobs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownJob
No module registered a handler for the job type (m.job::<J>()).
FailedJobNotFound
retry was given the id of a failed job that does not exist.
Payload(Error)
The job could not be serialized, or a stored job could not be read back.
Db(DbError)
A database error (database driver).
Orm(OrmError)
A failed-jobs ORM operation failed (database driver).
Store(BoxError)
A driver from another crate failed (a QueueStore
such as navree-redis’s): connection, protocol, …
ShutDown
The app owning the queue has been dropped.
NoDatabase
Operations are stored in the app database, and the app has no
DatabaseModule.
Trait Implementations§
Source§impl Debug for QueueError
impl Debug for QueueError
Source§impl Display for QueueError
impl Display for QueueError
Source§impl Error for QueueError
impl Error for QueueError
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<DbError> for QueueError
impl From<DbError> for QueueError
Auto Trait Implementations§
impl !RefUnwindSafe for QueueError
impl !UnwindSafe for QueueError
impl Forget for QueueError
impl Freeze for QueueError
impl Send for QueueError
impl Sync for QueueError
impl Unpin for QueueError
impl UnsafeUnpin for QueueError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.