pub enum JobRuntimeEvent {
Status(String),
Started,
Progress {
step: i64,
total_steps: i64,
},
Preview(Vec<u8>),
Result {
data: Vec<u8>,
file_extension: String,
},
Artifacts(Vec<String>),
}Expand description
One item a job runtime (image generation) streams back. The sidecar job pump
emits Started/Progress/Preview/Result; Status and Artifacts are
added by the scheduler layer that wraps the pump.
Variants§
Status(String)
A free-text status notice (emitted by the scheduler, not the pump).
Started
Generation has begun.
Progress
Progress through a fixed number of steps.
Preview(Vec<u8>)
An intermediate preview image.
Result
A finished output artifact and the file extension it should carry.
Artifacts(Vec<String>)
The set of artifact paths a job produced (emitted by the scheduler).
Trait Implementations§
Source§impl Clone for JobRuntimeEvent
impl Clone for JobRuntimeEvent
Source§fn clone(&self) -> JobRuntimeEvent
fn clone(&self) -> JobRuntimeEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobRuntimeEvent
impl Debug for JobRuntimeEvent
impl Eq for JobRuntimeEvent
Source§impl Hash for JobRuntimeEvent
impl Hash for JobRuntimeEvent
Source§impl PartialEq for JobRuntimeEvent
impl PartialEq for JobRuntimeEvent
impl StructuralPartialEq for JobRuntimeEvent
Auto Trait Implementations§
impl Freeze for JobRuntimeEvent
impl RefUnwindSafe for JobRuntimeEvent
impl Send for JobRuntimeEvent
impl Sync for JobRuntimeEvent
impl Unpin for JobRuntimeEvent
impl UnsafeUnpin for JobRuntimeEvent
impl UnwindSafe for JobRuntimeEvent
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