ProgressBar

Trait ProgressBar 

Source
pub trait ProgressBar {
    // Required methods
    fn increment(&mut self, work: usize) -> impl Future<Output = ()>;
    fn finish(self) -> impl Future<Output = ()>;
    fn set_message(&mut self, msg: String) -> impl Future<Output = ()>;

    // Provided method
    fn tick(&mut self) -> impl Future<Output = ()> { ... }
}

Required Methods§

Source

fn increment(&mut self, work: usize) -> impl Future<Output = ()>

Source

fn finish(self) -> impl Future<Output = ()>

Source

fn set_message(&mut self, msg: String) -> impl Future<Output = ()>

Provided Methods§

Source

fn tick(&mut self) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ProgressBar for ()

Source§

async fn increment(&mut self, _work: usize)

Source§

async fn finish(self)

Source§

async fn set_message(&mut self, _msg: String)

Source§

impl ProgressBar for ProgressBar

Source§

async fn increment(&mut self, work: usize)

Source§

async fn finish(self)

Source§

async fn set_message(&mut self, msg: String)

Source§

impl<P: ProgressBar> ProgressBar for Option<P>

Source§

async fn increment(&mut self, work: usize)

Source§

async fn finish(self)

Source§

async fn set_message(&mut self, msg: String)

Implementors§