pub enum IndicatorStyle {
BlinkingDot,
PulsingDot,
SpinnerDots,
SpinnerLine,
BouncingBar,
GrowingDots,
}Expand description
Built-in indicator styles that animate.
Variants§
BlinkingDot
Blinking dot: ● / (space)
PulsingDot
Pulsing dot: ● / ○
SpinnerDots
Spinning dots: ⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏
SpinnerLine
Spinning line: |/-\
BouncingBar
Bouncing bar: [= ] -> [ = ]
GrowingDots
Growing dots: . -> .. -> …
Implementations§
Source§impl IndicatorStyle
impl IndicatorStyle
Sourcepub fn render(&self, timer: &AnimationTimer) -> &'static str
pub fn render(&self, timer: &AnimationTimer) -> &'static str
Get the indicator string at current time.
Sourcepub fn tick_interval_ms(&self) -> u64
pub fn tick_interval_ms(&self) -> u64
Get the recommended tick interval for this style in milliseconds.
Trait Implementations§
Source§impl Clone for IndicatorStyle
impl Clone for IndicatorStyle
Source§fn clone(&self) -> IndicatorStyle
fn clone(&self) -> IndicatorStyle
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 IndicatorStyle
impl Debug for IndicatorStyle
Source§impl PartialEq for IndicatorStyle
impl PartialEq for IndicatorStyle
impl Copy for IndicatorStyle
impl Eq for IndicatorStyle
impl StructuralPartialEq for IndicatorStyle
Auto Trait Implementations§
impl Freeze for IndicatorStyle
impl RefUnwindSafe for IndicatorStyle
impl Send for IndicatorStyle
impl Sync for IndicatorStyle
impl Unpin for IndicatorStyle
impl UnwindSafe for IndicatorStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.