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, ) -> Self
pub async fn fetch_and_write_to_file(&self) -> Result<(), StatsigErr>
pub fn resync_from_file(&self) -> Result<(), StatsigErr>
Trait Implementations§
Source§impl BoxableInstance for StatsigLocalFileSpecsAdapter
impl BoxableInstance for StatsigLocalFileSpecsAdapter
fn from_box(boxed: &BoxedInstance) -> Option<Arc<Self>>
fn into_box(self) -> BoxedInstance
fn get_display_value_static() -> String
fn get_display_value(&self) -> String
fn get_prefix_value(&self) -> String
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( self: Arc<Self>, _statsig_runtime: &Arc<StatsigRuntime>, ) -> Result<(), StatsigErr>
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