pub struct Progress {
pub percent: u8,
pub stage: String,
pub updated_at: u64,
pub finished: bool,
pub failed: Option<String>,
}Expand description
One job’s position.
Fields§
§percent: u80 to 100. Clamped on the way in, because a job that reports 130% has a bug and a bar that overflows its box does not help find it.
stage: StringWhat the job is doing now, in words a person can read: “transcribing”, “rendering clip 3 of 7”.
updated_at: u64Unix seconds.
finished: boolSet by the worker, not the job, when the job’s handle returned.
failed: Option<String>Set by the worker on the last failed attempt, with the error.
Implementations§
Trait Implementations§
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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