pub struct JobContext { /* private fields */ }Expand description
Runtime context passed to every job handler invocation.
JobContext carries the raw JSON payload, the job metadata (Meta), and
a snapshot of the service registry. Handler arguments that implement
FromJobContext are extracted from this context automatically before the
handler is called.
Auto Trait Implementations§
impl Freeze for JobContext
impl !RefUnwindSafe for JobContext
impl Send for JobContext
impl Sync for JobContext
impl Unpin for JobContext
impl UnsafeUnpin for JobContext
impl !UnwindSafe for JobContext
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