pub enum ProgressMode {
Determinate,
Indeterminate {
phase: u64,
},
}Expand description
How a ProgressBar fills: a known fraction, or an animated marquee for
work of unknown duration.
Variants§
Determinate
Fill proportional to the bar’s ratio (the default).
Indeterminate
A fixed-width segment sweeps across the bar; ratio is ignored. The
caller supplies the animation phase (a tick or frame counter), so the
widget stays a stateless Widget and its output is deterministic.
Trait Implementations§
Source§impl Clone for ProgressMode
impl Clone for ProgressMode
impl Copy for ProgressMode
Source§impl Debug for ProgressMode
impl Debug for ProgressMode
Source§impl Default for ProgressMode
impl Default for ProgressMode
impl Eq for ProgressMode
Source§impl PartialEq for ProgressMode
impl PartialEq for ProgressMode
impl StructuralPartialEq for ProgressMode
Auto Trait Implementations§
impl Forget for ProgressMode
impl Freeze for ProgressMode
impl Move for ProgressMode
impl RefUnwindSafe for ProgressMode
impl Send for ProgressMode
impl Sync for ProgressMode
impl Unpin for ProgressMode
impl UnsafeUnpin for ProgressMode
impl UnwindSafe for ProgressMode
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