pub struct StatsigHttpSpecsAdapter { /* private fields */ }
Implementations§
Source§impl StatsigHttpSpecsAdapter
impl StatsigHttpSpecsAdapter
pub fn new( sdk_key: &str, options: Option<&StatsigOptions>, override_url: Option<String>, ) -> Self
pub fn force_shutdown(&self)
pub async fn fetch_specs_from_network( &self, current_specs_info: SpecsInfo, trigger: SpecsSyncTrigger, ) -> Result<NetworkResponse, NetworkError>
pub async fn run_background_sync(self: Arc<Self>)
Trait Implementations§
Source§impl SpecsAdapter for StatsigHttpSpecsAdapter
impl SpecsAdapter for StatsigHttpSpecsAdapter
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 initialize(&self, listener: Arc<dyn SpecsUpdateListener>)
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 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 get_type_name(&self) -> String
Auto Trait Implementations§
impl !Freeze for StatsigHttpSpecsAdapter
impl !RefUnwindSafe for StatsigHttpSpecsAdapter
impl Send for StatsigHttpSpecsAdapter
impl Sync for StatsigHttpSpecsAdapter
impl Unpin for StatsigHttpSpecsAdapter
impl !UnwindSafe for StatsigHttpSpecsAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more