Struct background_jobs_core::JobInfo
source · pub struct JobInfo { /* private fields */ }
Expand description
Metadata pertaining to a job that exists within the background_jobs system
Although exposed publically, this type should only really be handled by the library itself, and is impossible to create outside of a Processor’s new_job method.
Implementations§
source§impl JobInfo
impl JobInfo
sourcepub fn set_running(&mut self)
pub fn set_running(&mut self)
This method sets the Job’s status to running
Touching this outside of the background_jobs crates is dangerous, since these libraries rely on the state of the job being correct.
Trait Implementations§
source§impl<'de> Deserialize<'de> for JobInfo
impl<'de> Deserialize<'de> for JobInfo
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