fn timed_nonsend<C, R>(self, callback: C) -> BoxFutureNonSend<Self::Item, Self::Error>
    where
        C: FnOnce(FutureStats, Result<&Self::Item, &Self::Error>) -> R + 'static,
        R: IntoFuture<Item = (), Error = ()> + 'static,
        R::Future: 'static,
    {
        time_future(self, callback).boxify_nonsend()
    }
/// Combinator that returns a future that will gather some statistics using
/// [TimedFuture] and pass them for inspection to the provided callback.
Combinator that returns a future that will gather some statistics using
[TimedFuture] and pass them for inspection to the provided callback.
Combinator that returns a future that will gather some statistics using [ TimedFuture ] and pass them for inspection to the provided callback .
fn timed_nonsend<C, R>(self, callback: C) -> BoxFutureNonSend<Self::Item, Self::Error>
    where
        C: FnOnce(FutureStats, Result<&Self::Item, &Self::Error>) -> R + 'static,
        R: IntoFuture<Item = (), Error = ()> + 'static,
        R::Future: 'static,
    {
        time_future(self, callback).boxify_nonsend()
    }
fn timed_nonsend < C , R > ( self , callback : C ) -> BoxFutureNonSend < Self :: Item , Self :: Error > where C : FnOnce ( FutureStats , Result < & Self :: Item , & Self :: Error > ) -> R + ' static , R : IntoFuture < Item = ( ) , Error = ( ) > + ' static , R :: Future : ' static , { time_future ( self , callback ) . boxify_nonsend ( ) }
Combinator that returns a future that will gather some statistics using
[TimedFuture] and pass them for inspection to the provided callback.
Combinator that returns a future that will gather some statistics using [ TimedFuture ] and pass them for inspection to the provided callback .
self
callback
C
self
callback
C