pub struct SamplingProcessor { /* private fields */ }
Implementations§
Source§impl SamplingProcessor
impl SamplingProcessor
pub fn new( statsig_runtime: &Arc<StatsigRuntime>, hashing: Arc<HashUtil>, sdk_key: &str, ) -> Self
pub async fn shutdown(&self, _timeout: Duration) -> Result<(), StatsigErr>
pub fn get_sampling_decision_and_details( &self, user: &StatsigUserInternal, eval_result: Option<&AnyEvaluation<'_>>, parameter_name_for_layer: Option<&str>, ) -> SamplingDecision
Auto Trait Implementations§
impl Freeze for SamplingProcessor
impl RefUnwindSafe for SamplingProcessor
impl Send for SamplingProcessor
impl Sync for SamplingProcessor
impl Unpin for SamplingProcessor
impl UnwindSafe for SamplingProcessor
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