Trait SpecsAdapter
Source pub trait SpecsAdapter: Send + Sync {
// Required methods
fn initialize(&self, listener: Arc<dyn SpecsUpdateListener>);
fn start<'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 shutdown<'life0, 'life1, 'async_trait>(
&'life0 self,
timeout: Duration,
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 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;
}
Formats the value using the given formatter.
Read more