#[non_exhaustive]pub struct Progress {
pub work_completed: i64,
pub work_estimated: i64,
/* private fields */
}Expand description
Measures the progress of a particular metric.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.work_completed: i64The amount of work that has been completed. Note that this may be greater than work_estimated.
work_estimated: i64An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable.
Implementations§
Source§impl Progress
impl Progress
pub fn new() -> Self
Sourcepub fn set_work_completed<T: Into<i64>>(self, v: T) -> Self
pub fn set_work_completed<T: Into<i64>>(self, v: T) -> Self
Sets the value of work_completed.
Sourcepub fn set_work_estimated<T: Into<i64>>(self, v: T) -> Self
pub fn set_work_estimated<T: Into<i64>>(self, v: T) -> Self
Sets the value of work_estimated.
Trait Implementations§
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 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