pub struct JobContext {
pub id: String,
pub chain: Option<String>,
/* private fields */
}Expand description
What a running job is handed: who it is, and where to say how far it has got.
Fields§
§id: StringThe driver’s id for this job.
chain: Option<String>The chain this job is a step of, when it is one. Progress reported here is recorded under the chain as well, so a UI following a pipeline has one key to watch.
Implementations§
Source§impl JobContext
impl JobContext
pub fn new( id: impl Into<String>, chain: Option<String>, store: Option<Arc<dyn ProgressStore>>, ) -> JobContext
Sourcepub fn detached() -> JobContext
pub fn detached() -> JobContext
A context for a job run outside the worker — a test calling handle
directly. Reports go nowhere.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for JobContext
impl !UnwindSafe for JobContext
impl Freeze for JobContext
impl Send for JobContext
impl Sync for JobContext
impl Unpin for JobContext
impl UnsafeUnpin for JobContext
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