pub struct LoadingIndicator { /* private fields */ }Expand description
An animated loading indicator widget.
Renders a cycling character animation to indicate progress.
Call tick to advance the animation frame.
Implementations§
Source§impl LoadingIndicator
impl LoadingIndicator
Sourcepub fn with_style(self, style: IndicatorStyle) -> Self
pub fn with_style(self, style: IndicatorStyle) -> Self
Set the animation style.
Sourcepub fn with_indicator_style(self, style: Style) -> Self
pub fn with_indicator_style(self, style: Style) -> Self
Set the visual style for the indicator character.
Sourcepub fn with_message(self, message: &str) -> Self
pub fn with_message(self, message: &str) -> Self
Set the message displayed next to the indicator.
Sourcepub fn animation_style(&self) -> IndicatorStyle
pub fn animation_style(&self) -> IndicatorStyle
Get the current animation style.
Trait Implementations§
Source§impl Default for LoadingIndicator
impl Default for LoadingIndicator
Source§impl Widget for LoadingIndicator
impl Widget for LoadingIndicator
Source§fn render(&self, area: Rect, buf: &mut ScreenBuffer)
fn render(&self, area: Rect, buf: &mut ScreenBuffer)
Render this widget into the given area of the buffer.
Auto Trait Implementations§
impl Freeze for LoadingIndicator
impl RefUnwindSafe for LoadingIndicator
impl Send for LoadingIndicator
impl Sync for LoadingIndicator
impl Unpin for LoadingIndicator
impl UnsafeUnpin for LoadingIndicator
impl UnwindSafe for LoadingIndicator
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