pub struct Spinner { /* private fields */ }Expand description
An animated spinner that prints to stderr on a background thread.
The spinner is suppressed in quiet mode or when stderr is not a terminal.
Drop the spinner (or call Spinner::finish) to stop it and clear the line.
use skillfile_core::output::Spinner;
let spinner = Spinner::new("Searching registries");
// ... blocking work ...
spinner.finish(); // or just let it dropImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spinner
impl !RefUnwindSafe for Spinner
impl Send for Spinner
impl Sync for Spinner
impl Unpin for Spinner
impl UnsafeUnpin for Spinner
impl !UnwindSafe for Spinner
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