pub trait MetricsHelper {
    // Required methods
    fn metric<'life0, 'life1, 'async_trait>(
        &'life0 self,
        metric_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn metric_with_url<'async_trait>(
        metric: impl 'async_trait + AsRef<str> + Send,
        endpoint: impl 'async_trait + Into<Url> + Send
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>;
}

Required Methods§

source

fn metric<'life0, 'life1, 'async_trait>( &'life0 self, metric_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn metric_with_url<'async_trait>( metric: impl 'async_trait + AsRef<str> + Send, endpoint: impl 'async_trait + Into<Url> + Send ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>

Object Safety§

This trait is not object safe.

Implementors§