pub struct StatsigLocalFileSpecsAdapter { /* private fields */ }
Implementations§
Source§impl StatsigLocalFileSpecsAdapter
impl StatsigLocalFileSpecsAdapter
pub fn new( sdk_key: &str, output_directory: &str, specs_url: Option<String>, fallback_to_statsig_api: bool, disable_network: bool, ) -> Self
pub async fn fetch_and_write_to_file(&self) -> Result<(), StatsigErr>
pub fn resync_from_file(&self) -> Result<(), StatsigErr>
Trait Implementations§
Source§impl SpecsAdapter for StatsigLocalFileSpecsAdapter
impl SpecsAdapter for StatsigLocalFileSpecsAdapter
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 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
Auto Trait Implementations§
impl !Freeze for StatsigLocalFileSpecsAdapter
impl !RefUnwindSafe for StatsigLocalFileSpecsAdapter
impl Send for StatsigLocalFileSpecsAdapter
impl Sync for StatsigLocalFileSpecsAdapter
impl Unpin for StatsigLocalFileSpecsAdapter
impl !UnwindSafe for StatsigLocalFileSpecsAdapter
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