Trait ProgressExt

Source
pub trait ProgressExt: Progress {
    // Required methods
    fn inspect_each<F: Fn(Stderr) + Send>(
        self,
        f: F,
    ) -> impl Future<Output = Result<Self::T, Self::Error>> + Send;
    fn split(
        self,
    ) -> impl Future<Output = (Vec<Stderr>, Result<Self::T, Self::Error>)> + Send;
}
Expand description

Helper methods for Progress.

Required Methods§

Source

fn inspect_each<F: Fn(Stderr) + Send>( self, f: F, ) -> impl Future<Output = Result<Self::T, Self::Error>> + Send

Calls f() for each message returned from Progress::next(), then Progress::result().

Source

fn split( self, ) -> impl Future<Output = (Vec<Stderr>, Result<Self::T, Self::Error>)> + Send

Returns a tuple of (stderr, Progress::result()), where stderr is a Vec<Stderr> of all Stderr returned by Progress::next().

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.

Implementors§