pub struct Spinner { /* private fields */ }Implementations§
Source§impl Spinner
impl Spinner
pub fn start(label: &str, style: Style) -> Self
Sourcepub fn run<T, E: Display>(
label: &str,
style: Style,
f: impl FnOnce() -> Result<T, E>,
) -> Result<T, E>
pub fn run<T, E: Display>( label: &str, style: Style, f: impl FnOnce() -> Result<T, E>, ) -> Result<T, E>
Run a closure; auto-success if Ok, auto-fail if Err.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Spinner
impl !UnwindSafe for Spinner
impl Freeze for Spinner
impl Send for Spinner
impl Sync for Spinner
impl Unpin for Spinner
impl UnsafeUnpin 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