pub struct Options {
pub refresh_period: Duration,
pub initially_visible: bool,
pub enable_ansi_escapes: bool,
}
Expand description
Options controlling how to display the status line
Fields§
§refresh_period: Duration
How long to wait between subsequent refreshes of the status. Defaults to 100 ms on interactive terminals (TTYs) and 1 s if the standard error is not interactive, e.g. redirected to a file.
initially_visible: bool
Set it to false if you don’t want to show the status on creation of the StatusLine
.
You can change the visibility of the StatusLine
any time by calling
StatusLine::set_visible
.
enable_ansi_escapes: bool
Set to true to enable ANSI escape codes. By default set to true if the standard error is a TTY. If ANSI escape codes are disabled, the status line is not erased before each refresh, it is printed in a new line instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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