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§
Sourcefn inspect_each<F: Fn(Stderr) + Send>(
self,
f: F,
) -> impl Future<Output = Result<Self::T, Self::Error>> + Send
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()
.
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.