pub enum ProgressState {
Normal(u8),
Error(u8),
Warning(u8),
Indeterminate,
}Expand description
A progress indication reported to the terminal with OSC 9;4, shown in
the taskbar, tab, or window chrome by terminals that support it.
Set it with Program::set_progress_state and take it down with
Program::reset_progress_state. Percentages are clamped to 0..=100
when emitted.
Variants§
Normal(u8)
Determinate progress at the given percentage.
Error(u8)
A failed operation, at the given percentage. Usually red.
Warning(u8)
An operation needing attention, at the given percentage. Usually yellow. Named “paused” in ConEmu, which originated the sequence.
Indeterminate
Work in progress of unknown duration. Usually a pulsing bar.
Trait Implementations§
Source§impl Clone for ProgressState
impl Clone for ProgressState
Source§fn clone(&self) -> ProgressState
fn clone(&self) -> ProgressState
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 ProgressState
Source§impl Debug for ProgressState
impl Debug for ProgressState
impl Eq for ProgressState
Source§impl Hash for ProgressState
impl Hash for ProgressState
Source§impl PartialEq for ProgressState
impl PartialEq for ProgressState
Source§fn eq(&self, other: &ProgressState) -> bool
fn eq(&self, other: &ProgressState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgressState
Auto Trait Implementations§
impl Freeze for ProgressState
impl RefUnwindSafe for ProgressState
impl Send for ProgressState
impl Sync for ProgressState
impl Unpin for ProgressState
impl UnsafeUnpin for ProgressState
impl UnwindSafe for ProgressState
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