pub struct Spinner { /* private fields */ }Expand description
A spinner for indeterminate progress.
Implementations§
Source§impl Spinner
impl Spinner
Sourcepub fn style(self, style: SpinnerStyle) -> Self
pub fn style(self, style: SpinnerStyle) -> Self
Set the spinner style.
Sourcepub fn spinner_style(self, style: Style) -> Self
pub fn spinner_style(self, style: Style) -> Self
Set the spinner character style.
Sourcepub fn text_style(self, style: Style) -> Self
pub fn text_style(self, style: Style) -> Self
Set the text style.
Sourcepub fn get_style(&self) -> SpinnerStyle
pub fn get_style(&self) -> SpinnerStyle
Get the spinner style.
Sourcepub fn current_frame(&self) -> &'static str
pub fn current_frame(&self) -> &'static str
Get the current frame character.
Sourcepub fn to_string_colored(&self) -> String
pub fn to_string_colored(&self) -> String
Render to a string (for simple output).
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 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