Trait walker_common::progress::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 = ()>

Object Safety§

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§