pub enum ProgressEnabled {
Auto,
On,
Off,
}Variants§
Auto
Enable progress only when the selected draw target is a TTY.
Notes:
- With the default draw target (stderr), this disables progress when stderr is not a TTY, keeping stdout clean for piping and machine-readable output.
- With
ProgressDrawTarget::to_writer(...)(tests), auto-enable is never blocked by TTY detection.
On
Off
Trait Implementations§
Source§impl Clone for ProgressEnabled
impl Clone for ProgressEnabled
Source§fn clone(&self) -> ProgressEnabled
fn clone(&self) -> ProgressEnabled
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgressEnabled
impl Debug for ProgressEnabled
Source§impl PartialEq for ProgressEnabled
impl PartialEq for ProgressEnabled
impl Copy for ProgressEnabled
impl Eq for ProgressEnabled
impl StructuralPartialEq for ProgressEnabled
Auto Trait Implementations§
impl Freeze for ProgressEnabled
impl RefUnwindSafe for ProgressEnabled
impl Send for ProgressEnabled
impl Sync for ProgressEnabled
impl Unpin for ProgressEnabled
impl UnsafeUnpin for ProgressEnabled
impl UnwindSafe for ProgressEnabled
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