Enum background_jobs_core::JobError
source · pub enum JobError {
Processing(Error),
Json,
MissingProcessor,
}
Expand description
The error type returned by a Processor
’s process
method
Variants
Processing(Error)
Some error occurred while processing the job
Json
Creating a Job
type from the provided serde_json::Value
failed
MissingProcessor
No processor was present to handle a given job
Trait Implementations
sourceimpl Fail for JobError
impl Fail for JobError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations
impl !RefUnwindSafe for JobError
impl Send for JobError
impl Sync for JobError
impl Unpin for JobError
impl !UnwindSafe for JobError
Blanket Implementations
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