pub struct TaskUpdate {
pub total: Option<f64>,
pub completed: Option<f64>,
pub advance: Option<f64>,
pub description: Option<String>,
pub visible: Option<bool>,
pub fields: Vec<(String, FormatValue)>,
pub refresh: bool,
}Expand description
Changes for Progress::update; unset fields are left alone. Upstream’s
keyword arguments to Progress.update.
Fields§
§total: Option<f64>§completed: Option<f64>§advance: Option<f64>§description: Option<String>§visible: Option<bool>§fields: Vec<(String, FormatValue)>Custom fields to set (upstream **fields).
refresh: boolRedraw a live display right after the update (upstream refresh=True).
Implementations§
Source§impl TaskUpdate
impl TaskUpdate
pub fn total(self, total: f64) -> Self
pub fn completed(self, completed: f64) -> Self
pub fn advance(self, advance: f64) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn visible(self, visible: bool) -> Self
Sourcepub fn refresh(self, refresh: bool) -> Self
pub fn refresh(self, refresh: bool) -> Self
Redraw a LiveProgress right after this update (upstream
refresh=True).
Trait Implementations§
Source§impl Clone for TaskUpdate
impl Clone for TaskUpdate
Source§impl Debug for TaskUpdate
impl Debug for TaskUpdate
Auto Trait Implementations§
impl Freeze for TaskUpdate
impl RefUnwindSafe for TaskUpdate
impl Send for TaskUpdate
impl Sync for TaskUpdate
impl Unpin for TaskUpdate
impl UnsafeUnpin for TaskUpdate
impl UnwindSafe for TaskUpdate
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