pub struct Spinner { /* private fields */ }Expand description
A spinner for indeterminate progress.
Implementations§
Source§impl Spinner
impl Spinner
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Set whether the spinner is enabled.
Sourcepub fn set_message(&mut self, message: impl Into<String>)
pub fn set_message(&mut self, message: impl Into<String>)
Set the message.
Sourcepub fn finish_with_message(&mut self, message: impl Into<String>)
pub fn finish_with_message(&mut self, message: impl Into<String>)
Finish the spinner with a success message.
Sourcepub fn finish_with_error(&mut self, message: impl Into<String>)
pub fn finish_with_error(&mut self, message: impl Into<String>)
Finish the spinner with an error message.
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