Fields§
§work: Work
§fresh: Freshness
Implementations§
source§impl Job
impl Job
sourcepub fn new_dirty(work: Work, dirty_reason: Option<DirtyReason>) -> Job
pub fn new_dirty(work: Work, dirty_reason: Option<DirtyReason>) -> Job
Creates a new job representing a unit of work.
sourcepub fn run(self, state: &JobState<'_, '_>) -> CargoResult<()>
pub fn run(self, state: &JobState<'_, '_>) -> CargoResult<()>
Consumes this job by running it, returning the result of the computation.
sourcepub fn freshness(&self) -> &Freshness
pub fn freshness(&self) -> &Freshness
Returns whether this job was fresh/dirty, where “fresh” means we’re likely to perform just some small bookkeeping where “dirty” means we’ll probably do something slow like invoke rustc.
pub fn before(&mut self, next: Work)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Job
impl Send for Job
impl !Sync for Job
impl Unpin for Job
impl !UnwindSafe for Job
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes