Struct statsig_rdp::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Statsig client that has a local cache and syncs with the API periodically.
Implementations
sourceimpl Client
impl Client
pub async fn new(api_key: String, options: StatsigOptions) -> Result<Arc<Self>>
pub async fn check_gate(
self: Arc<Self>,
gate: String,
user: StatsigUser
) -> Result<bool>
pub async fn get_dynamic_config<T: DeserializeOwned>(
self: Arc<Self>,
config: String,
user: StatsigUser
) -> Result<T>
pub async fn log_event(&self, statsig_post: StatsigPost) -> Result<()>
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more