Trait nix_daemon::ProgressExt

source ·
pub trait ProgressExt: Progress {
    // Required methods
    fn tap<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 tap<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().

Object Safety§

This trait is not object safe.

Implementors§