pub struct Status {
pub spinner: Spinner,
pub status: String,
pub started: Option<Instant>,
}Expand description
A status message rendered with an animated spinner.
Usage:
ⓘ
let status = Status::new("Working...");
status.start();
// do work...
status.update("Still working...");
status.stop();Fields§
§spinner: Spinner§status: String§started: Option<Instant>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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