pub struct StatsigHttpEventLoggingAdapter { /* private fields */ }
Implementations§
Source§impl StatsigHttpEventLoggingAdapter
impl StatsigHttpEventLoggingAdapter
pub fn new(sdk_key: &str, log_event_url: Option<&String>) -> Self
pub async fn send_events_over_http( &self, request: &LogEventRequest, ) -> Result<bool, StatsigErr>
Trait Implementations§
Source§impl BoxableInstance for StatsigHttpEventLoggingAdapter
impl BoxableInstance for StatsigHttpEventLoggingAdapter
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 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