Struct terminal_spinners::SpinnerHandle [−][src]
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
impl !RefUnwindSafe for SpinnerHandle
impl Send for SpinnerHandle
impl !Sync for SpinnerHandle
impl Unpin for SpinnerHandle
impl !UnwindSafe for SpinnerHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,