pub struct SpinnerModel {
pub spinner: Spinner,
pub style: Style,
/* private fields */
}Expand description
The spinner model.
Fields§
§spinner: SpinnerThe spinner animation to use.
style: StyleStyle for rendering the spinner.
Implementations§
Source§impl SpinnerModel
impl SpinnerModel
Sourcepub fn with_spinner(spinner: Spinner) -> Self
pub fn with_spinner(spinner: Spinner) -> Self
Creates a new spinner with the given spinner style.
Sourcepub fn tick(&self) -> Message
pub fn tick(&self) -> Message
Creates a tick message to start or continue the spinner animation.
Use this to get the initial tick message, then the spinner will
continue ticking via the command returned from update.
Trait Implementations§
Source§impl Clone for SpinnerModel
impl Clone for SpinnerModel
Source§fn clone(&self) -> SpinnerModel
fn clone(&self) -> SpinnerModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpinnerModel
impl Debug for SpinnerModel
Source§impl Default for SpinnerModel
impl Default for SpinnerModel
Source§impl Model for SpinnerModel
Implement the Model trait for standalone bubbletea usage.
impl Model for SpinnerModel
Implement the Model trait for standalone bubbletea usage.
Auto Trait Implementations§
impl Freeze for SpinnerModel
impl !RefUnwindSafe for SpinnerModel
impl Send for SpinnerModel
impl Sync for SpinnerModel
impl Unpin for SpinnerModel
impl !UnwindSafe for SpinnerModel
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