Enum cargo::util::progress::ProgressStyle
source · pub enum ProgressStyle {
Percentage,
Ratio,
Indeterminate,
}
Expand description
Indicates the style of information for displaying the amount of progress.
See also Progress::print_now
for displaying progress without a bar.
Variants§
Percentage
Displays progress as a percentage.
Example: Fetch [=====================> ] 88.15%
This is good for large values like number of bytes downloaded.
Ratio
Displays progress as a ratio.
Example: Building [===> ] 35/222
This is good for smaller values where the exact number is useful to see.
Indeterminate
Does not display an exact value of how far along it is.
Example: Fetch [===========> ]
This is good for situations where the exact value is an approximation, and thus there isn’t anything accurate to display to the user.
Auto Trait Implementations§
impl RefUnwindSafe for ProgressStyle
impl Send for ProgressStyle
impl Sync for ProgressStyle
impl Unpin for ProgressStyle
impl UnwindSafe for ProgressStyle
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Percentage
: 0 bytesRatio
: 0 bytesIndeterminate
: 0 bytes