pub struct JobTaskContext<'task> {
pub command: Arc<Command>,
pub current: &'task CommandState,
pub previous: Option<&'task CommandState>,
}Expand description
Job task internals exposed via hooks.
Fields§
§command: Arc<Command>The job’s Command.
current: &'task CommandStateThe current state of the job.
previous: Option<&'task CommandState>The state of the previous iteration of the job, if any.
This is generally CommandState::Finished, but may be other states in rare cases.
Trait Implementations§
Auto Trait Implementations§
impl<'task> Freeze for JobTaskContext<'task>
impl<'task> !RefUnwindSafe for JobTaskContext<'task>
impl<'task> Send for JobTaskContext<'task>
impl<'task> Sync for JobTaskContext<'task>
impl<'task> Unpin for JobTaskContext<'task>
impl<'task> !UnwindSafe for JobTaskContext<'task>
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