pub struct Spinner { /* private fields */ }Expand description
An animated loading spinner.
Implementations§
Source§impl Spinner
impl Spinner
Sourcepub fn new(style: SpinnerStyle) -> Self
pub fn new(style: SpinnerStyle) -> Self
Create a new spinner with the given style.
Sourcepub fn current_frame(&self) -> &str
pub fn current_frame(&self) -> &str
Get the current frame.
Sourcepub const fn interval_ms(&self) -> u64
pub const fn interval_ms(&self) -> u64
Get the interval for this spinner.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)