pub struct JobEnvelope {
pub id: JobId,
pub job: Job,
pub queue: String,
pub meta: JobMeta,
}Fields§
§id: JobId§job: Job§queue: String§meta: JobMetaImplementations§
Source§impl JobEnvelope
impl JobEnvelope
pub fn new<T, DT, ET>(queue: String, job: T) -> Result<Self, OxanusError>
pub fn new_cron( queue: String, id: String, name: String, scheduled_at: i64, ) -> Result<Self, OxanusError>
pub fn with_retries_incremented(self) -> Self
Trait Implementations§
Source§impl Clone for JobEnvelope
impl Clone for JobEnvelope
Source§fn clone(&self) -> JobEnvelope
fn clone(&self) -> JobEnvelope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobEnvelope
impl Debug for JobEnvelope
Source§impl<'de> Deserialize<'de> for JobEnvelope
impl<'de> Deserialize<'de> for JobEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JobEnvelope
impl RefUnwindSafe for JobEnvelope
impl Send for JobEnvelope
impl Sync for JobEnvelope
impl Unpin for JobEnvelope
impl UnsafeUnpin for JobEnvelope
impl UnwindSafe for JobEnvelope
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