pub struct NewJob {
pub name: String,
pub payload: String,
pub run_at_ms: i64,
pub max_attempts: u32,
pub backoff_ms: i64,
}Expand description
A run to put in the queue.
Fields§
§name: StringThe registered job that runs it.
payload: StringText the job receives, at most MAX_JOB_PAYLOAD bytes.
run_at_ms: i64Earliest start, Unix milliseconds.
max_attempts: u32Tries in all, at least one.
backoff_ms: i64Wait before the second try; it doubles each time up to MAX_BACKOFF_MS.
Trait Implementations§
impl Eq for NewJob
impl StructuralPartialEq for NewJob
Auto Trait Implementations§
impl Freeze for NewJob
impl RefUnwindSafe for NewJob
impl Send for NewJob
impl Sync for NewJob
impl Unpin for NewJob
impl UnsafeUnpin for NewJob
impl UnwindSafe for NewJob
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