Trait yapb::Spinner

source ·
pub trait Spinner: Display {
    fn set(&mut self, value: u32);
    fn step(&mut self, count: u32);
}
Expand description

Indicators that animate through some number of states to indicate activity with indefinite duration

Incrementing a state by 1 advances by one frame of animation. Implementations of these two setters should only be a handful of instructions, with all complexity deferred to the Display impl.

Required Methods

Set a specific state

Advance the current state count times.

Implementors