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
Source§fn clone(&self) -> ProgressMode
fn clone(&self) -> ProgressMode
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 moreimpl Copy for ProgressMode
Source§impl Debug for ProgressMode
impl Debug for ProgressMode
Source§impl Default for ProgressMode
impl Default for ProgressMode
Source§fn default() -> ProgressMode
fn default() -> ProgressMode
Returns the “default value” for a type. Read more
impl Eq for ProgressMode
Source§impl PartialEq for ProgressMode
impl PartialEq for ProgressMode
impl StructuralPartialEq for ProgressMode
Auto Trait Implementations§
impl Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.