pub enum JobEvent {
Queued {
reason: Option<String>,
},
Preparing,
Status(String),
Running,
Progress(JobProgress),
Preview(Vec<u8>),
Done {
result: Vec<String>,
},
Failed {
message: String,
},
Cancelled,
}Expand description
What the scheduler publishes to events(id) observers. Coarser than the
runtime stream: it collapses the runner’s ticks into the observable state.
Variants§
Queued
The job is queued, optionally with a human reason for the wait.
Preparing
The job has passed admission and is preparing.
Status(String)
A free-text status notice.
Running
The job is actively running.
Progress(JobProgress)
Monotone progress.
Preview(Vec<u8>)
An intermediate preview image.
Done
The job finished, with its result artifact ids.
Failed
The job failed, with a message.
Cancelled
The job was cancelled.
Trait Implementations§
impl StructuralPartialEq for JobEvent
Auto Trait Implementations§
impl Freeze for JobEvent
impl RefUnwindSafe for JobEvent
impl Send for JobEvent
impl Sync for JobEvent
impl Unpin for JobEvent
impl UnsafeUnpin for JobEvent
impl UnwindSafe for JobEvent
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