Trait sigstat::EventLoggingAdapter

source ·
pub trait EventLoggingAdapter: Send + Sync {
    // Required methods
    fn bind(&self, sdk_key: &str, option: &StatsigOptions);
    fn log_events<'life0, 'async_trait>(
        &'life0 self,
        payload: HashMap<String, Value>,
        event_count: usize,
    ) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn bind(&self, sdk_key: &str, option: &StatsigOptions)

source

fn log_events<'life0, 'async_trait>( &'life0 self, payload: HashMap<String, Value>, event_count: usize, ) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§