pub struct SamplingGate { /* private fields */ }Implementations§
Source§impl SamplingGate
impl SamplingGate
pub fn new(sample_ratio: f64) -> Self
pub fn should_sample(&self) -> bool
pub fn sampled_per_million(&self) -> u64
Trait Implementations§
Source§impl Debug for SamplingGate
impl Debug for SamplingGate
Auto Trait Implementations§
impl !Freeze for SamplingGate
impl RefUnwindSafe for SamplingGate
impl Send for SamplingGate
impl Sync for SamplingGate
impl Unpin for SamplingGate
impl UnsafeUnpin for SamplingGate
impl UnwindSafe for SamplingGate
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