pub struct SpinnerHandle { /* private fields */ }
Expand description
A handle to a running spinner.
Can be used to send commands to the render thread.
Implementations§
Source§impl SpinnerHandle
impl SpinnerHandle
Sourcepub fn done(self)
pub fn done(self)
Stops the spinner and renders a success symbol.
Examples found in repository?
More examples
Additional examples can be found in:
- examples/pipe.rs
- examples/pong.rs
- examples/star.rs
- examples/arrow.rs
- examples/clock.rs
- examples/dots2.rs
- examples/dots3.rs
- examples/dots4.rs
- examples/dots5.rs
- examples/dots6.rs
- examples/dots7.rs
- examples/dots8.rs
- examples/dots9.rs
- examples/earth.rs
- examples/layer.rs
- examples/line2.rs
- examples/noise.rs
- examples/point.rs
- examples/shark.rs
- examples/star2.rs
- examples/arrow2.rs
- examples/arrow3.rs
- examples/bounce.rs
- examples/circle.rs
- examples/dots10.rs
- examples/dots11.rs
- examples/dots12.rs
- examples/hearts.rs
- examples/monkey.rs
- examples/runner.rs
- examples/smiley.rs
- examples/squish.rs
- examples/toggle.rs
- examples/balloon.rs
- examples/grenade.rs
- examples/toggle2.rs
- examples/toggle3.rs
- examples/toggle4.rs
- examples/toggle5.rs
- examples/toggle6.rs
- examples/toggle7.rs
- examples/toggle8.rs
- examples/toggle9.rs
- examples/weather.rs
- examples/balloon2.rs
- examples/material.rs
- examples/toggle10.rs
- examples/toggle11.rs
- examples/toggle12.rs
- examples/toggle13.rs
- examples/triangle.rs
- examples/aesthetic.rs
- examples/beta_wave.rs
- examples/christmas.rs
- examples/dots8_bit.rs
- examples/hamburger.rs
- examples/box_bounce.rs
- examples/box_bounce2.rs
- examples/simple_dots.rs
- examples/bouncing_bar.rs
- examples/bouncing_ball.rs
- examples/circle_halves.rs
- examples/grow_vertical.rs
- examples/square_corners.rs
- examples/circle_quarters.rs
- examples/grow_horizontal.rs
- examples/simple_dots_scrolling.rs
- examples/prefix.rs
Sourcepub fn stop_and_clear(self)
pub fn stop_and_clear(self)
Stops the spinner and clears the line it was printed on.
Auto Trait Implementations§
impl Freeze for SpinnerHandle
impl !RefUnwindSafe for SpinnerHandle
impl Send for SpinnerHandle
impl Sync for SpinnerHandle
impl Unpin for SpinnerHandle
impl !UnwindSafe for SpinnerHandle
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