Trait EventLoggingAdapter

Source
pub trait EventLoggingAdapter: Send + Sync {
    // Required methods
    fn start<'life0, 'life1, 'async_trait>(
        &'life0 self,
        statsig_runtime: &'life1 Arc<StatsigRuntime>,
    ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn log_events<'life0, 'async_trait>(
        &'life0 self,
        request: LogEventRequest,
    ) -> Pin<Box<dyn Future<Output = Result<bool, StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn shutdown<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn should_schedule_background_flush(&self) -> bool;
}

Required Methods§

Source

fn start<'life0, 'life1, 'async_trait>( &'life0 self, statsig_runtime: &'life1 Arc<StatsigRuntime>, ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn log_events<'life0, 'async_trait>( &'life0 self, request: LogEventRequest, ) -> Pin<Box<dyn Future<Output = Result<bool, StatsigErr>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn shutdown<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn should_schedule_background_flush(&self) -> bool

Implementors§