pub struct Job<J> {
pub id: JobId,
pub payload: J,
pub attempt: u32,
pub key: Option<String>,
}Expand description
What a handler receives
Fields§
§id: JobId§payload: J§attempt: u321 on the first try, 2 on the first retry, …
key: Option<String>Trait Implementations§
Auto Trait Implementations§
impl<J> Freeze for Job<J>where
J: Freeze,
impl<J> RefUnwindSafe for Job<J>where
J: RefUnwindSafe,
impl<J> Send for Job<J>where
J: Send,
impl<J> Sync for Job<J>where
J: Sync,
impl<J> Unpin for Job<J>where
J: Unpin,
impl<J> UnsafeUnpin for Job<J>where
J: UnsafeUnpin,
impl<J> UnwindSafe for Job<J>where
J: UnwindSafe,
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