pub trait MetricsCollector: Send + Sync {
    fn publish<'life0, 'async_trait>(
        &'life0 self,
        count: u64
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn consume<'life0, 'async_trait>(
        &'life0 self,
        count: u64
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn publish_confirm<'life0, 'async_trait>(
        &'life0 self,
        count: u64
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn publish_error<'life0, 'async_trait>(
        &'life0 self,
        count: u64
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required Methods

Implementors