pub trait RecordDuration<'a>: 'a {
    type Output;

    // Required methods
    fn record_duration(
        self,
        r: &'a ValueRecorder<f64>,
        attributes: &'a [KeyValue]
    ) -> BoxFuture<'a, Self::Output>;
    fn bound_record_duration(
        self,
        r: &'a BoundValueRecorder<f64>
    ) -> BoxFuture<'a, Self::Output>;
}

Required Associated Types§

Required Methods§

source

fn record_duration( self, r: &'a ValueRecorder<f64>, attributes: &'a [KeyValue] ) -> BoxFuture<'a, Self::Output>

source

fn bound_record_duration( self, r: &'a BoundValueRecorder<f64> ) -> BoxFuture<'a, Self::Output>

Implementors§

source§

impl<'a, T, O> RecordDuration<'a> for T
where T: Future<Output = O> + Send + 'a,

§

type Output = O