pub struct StatsigHttpEventLoggingAdapter { /* private fields */ }
Implementations§
Source§impl StatsigHttpEventLoggingAdapter
impl StatsigHttpEventLoggingAdapter
pub fn new(sdk_key: &str, options: Option<&StatsigOptions>) -> Self
pub async fn send_events_over_http( &self, request: &LogEventRequest, ) -> Result<(), StatsigErr>
Trait Implementations§
Source§impl EventLoggingAdapter for StatsigHttpEventLoggingAdapter
impl EventLoggingAdapter for StatsigHttpEventLoggingAdapter
fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
_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 log_events<'life0, 'async_trait>(
&'life0 self,
request: LogEventRequest,
) -> Pin<Box<dyn Future<Output = Result<bool, StatsigErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), StatsigErr>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn should_schedule_background_flush(&self) -> bool
Auto Trait Implementations§
impl Freeze for StatsigHttpEventLoggingAdapter
impl !RefUnwindSafe for StatsigHttpEventLoggingAdapter
impl Send for StatsigHttpEventLoggingAdapter
impl Sync for StatsigHttpEventLoggingAdapter
impl Unpin for StatsigHttpEventLoggingAdapter
impl !UnwindSafe for StatsigHttpEventLoggingAdapter
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