Struct terminal_spinners::SpinnerHandle[][src]

pub struct SpinnerHandle { /* fields omitted */ }

A handle to a running spinner.

Can be used to send commands to the render thread.

Implementations

impl SpinnerHandle[src]

pub fn done(self)[src]

Stops the spinner and renders a success symbol.

pub fn error(self)[src]

Stops the spinner and renders an error symbol.

pub fn info(self)[src]

Stops the spinner and renders an information symbol.

pub fn stop(self)[src]

Stops the spinner.

pub fn stop_and_clear(self)[src]

Stops the spinner and clears the line it was printed on.

pub fn text(&self, text: impl Into<Cow<'static, str>>)[src]

Changes the text of the spinner.

pub fn warn(self)[src]

Stops the spinner and renders a warning symbol.

pub fn unknown(self)[src]

Stops the spinner and renders an unknown symbol.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.