pub enum StatusItem<'a> {
Text(&'a str),
Spinner(usize),
Progress {
current: u64,
total: u64,
},
KeyHint {
key: &'a str,
action: &'a str,
},
Spacer,
}Expand description
An item that can be displayed in the status line.
Variants§
Text(&'a str)
Plain text.
Spinner(usize)
A spinner showing activity (references spinner state by index).
Progress
A progress indicator showing current/total.
KeyHint
A key hint showing a key and its action.
Spacer
A flexible spacer that expands to fill available space.
Implementations§
Source§impl<'a> StatusItem<'a>
impl<'a> StatusItem<'a>
Trait Implementations§
Source§impl<'a> Clone for StatusItem<'a>
impl<'a> Clone for StatusItem<'a>
Source§fn clone(&self) -> StatusItem<'a>
fn clone(&self) -> StatusItem<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for StatusItem<'a>
impl<'a> RefUnwindSafe for StatusItem<'a>
impl<'a> Send for StatusItem<'a>
impl<'a> Sync for StatusItem<'a>
impl<'a> Unpin for StatusItem<'a>
impl<'a> UnsafeUnpin for StatusItem<'a>
impl<'a> UnwindSafe for StatusItem<'a>
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