Trait RecordDuration

Source
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,