Trait IdListsAdapter

Source
pub trait IdListsAdapter: Send + Sync {
    // Required methods
    fn start<'life0, 'async_trait>(
        self: Arc<Self>,
        statsig_runtime: &'life0 Arc<StatsigRuntime>,
        listener: Arc<dyn IdListsUpdateListener + Send + Sync>,
    ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn shutdown<'life0, 'async_trait>(
        &'life0 self,
        timeout: Duration,
    ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn schedule_background_sync<'life0, 'async_trait>(
        self: Arc<Self>,
        statsig_runtime: &'life0 Arc<StatsigRuntime>,
    ) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_type_name(&self) -> String;
}

Required Methods§

Source

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

Source

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

Source

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

Source

fn get_type_name(&self) -> String

Trait Implementations§

Source§

impl Debug for dyn IdListsAdapter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§