[−][src]Crate circle_rs
Minimalistic modern infinite terminal progress indicator
This is slightly changed version of rustbar crate, which is simple and minimalistic, but i needed another infinite bar animation, hence this crate.
The goal also was to be able to use it as simple as:
Example
#use std::{io::Result, thread, time::Duration}; #use wait_lib::{Infinite, Progress}; pub fn main() -> Result<()> { println!("\nGoing to poll some stuff."); let mut loader = Infinite::new().to_stderr(); loader.set_msg("Polling"); loader.start()?; thread::sleep(Duration::from_secs(2)); loader.stop()?; Ok(()) }
Structs
Infinite | Struct for storing state |
Traits
Progress | Main trait |