pub struct SpinnerLineHandle { /* private fields */ }Expand description
Handle for controlling a single spinner line within a multi-spinner group.
SpinnerLineHandle is Send so it can be moved to worker threads.
Implementations§
Source§impl SpinnerLineHandle
impl SpinnerLineHandle
Sourcepub fn success(self)
pub fn success(self)
Finalize this spinner line with a green ✔ and the current message.
§Panics
Panics if the internal mutex is poisoned.
Sourcepub fn success_with(self, message: impl Into<String>)
pub fn success_with(self, message: impl Into<String>)
Finalize this spinner line with a green ✔ and a replacement message.
§Panics
Panics if the internal mutex is poisoned.
Sourcepub fn fail(self)
pub fn fail(self)
Finalize this spinner line with a red ✖ and the current message.
§Panics
Panics if the internal mutex is poisoned.
Sourcepub fn fail_with(self, message: impl Into<String>)
pub fn fail_with(self, message: impl Into<String>)
Finalize this spinner line with a red ✖ and a replacement message.
§Panics
Panics if the internal mutex is poisoned.
Sourcepub fn clear(self)
pub fn clear(self)
Silently dismiss this spinner line.
The line disappears from the terminal on the next render frame (TTY mode) or produces no output at all (plain mode). Remaining lines collapse together with no gap.
This consumes the handle, preventing further updates.
§Panics
Panics if the internal mutex is poisoned.