PillarUsageRecorder

Trait PillarUsageRecorder 

Source
pub trait PillarUsageRecorder: Send + Sync {
    // Required method
    fn record<'life0, 'async_trait>(
        &'life0 self,
        event: PillarUsageEvent,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for recording pillar usage events This allows different implementations (analytics DB, API endpoint, etc.)

Required Methods§

Source

fn record<'life0, 'async_trait>( &'life0 self, event: PillarUsageEvent, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Record a pillar usage event

Implementors§