pub struct JobProgress {
pub job: JobId,
pub current: u64,
pub total: Option<u64>,
}Expand description
Progress of a running job.
Deliberately throttled by the job registry: a job that reports every one of ten thousand steps would flood the bus and make slow subscribers lag, losing the finished event they actually care about.
Fields§
§job: JobId§current: u64§total: Option<u64>Trait Implementations§
Source§impl Clone for JobProgress
impl Clone for JobProgress
Source§fn clone(&self) -> JobProgress
fn clone(&self) -> JobProgress
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 JobProgress
impl Debug for JobProgress
Source§impl<'de> Deserialize<'de> for JobProgress
impl<'de> Deserialize<'de> for JobProgress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JobProgress
impl RefUnwindSafe for JobProgress
impl Send for JobProgress
impl Sync for JobProgress
impl Unpin for JobProgress
impl UnsafeUnpin for JobProgress
impl UnwindSafe for JobProgress
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