pub struct SamplingMatch { /* private fields */ }
Expand description
Represents the specification for sampling an incoming event.
Implementations§
source§impl SamplingMatch
impl SamplingMatch
sourcepub fn sample_rate(&self) -> f64
pub fn sample_rate(&self) -> f64
Returns the sample rate.
sourcepub fn into_matched_rules(self) -> MatchedRuleIds
pub fn into_matched_rules(self) -> MatchedRuleIds
Returns the matched rules for the sampling match.
Takes ownership, useful if you don’t need the SamplingMatch
anymore
and you want to avoid allocations.
sourcepub fn decision(&self) -> SamplingDecision
pub fn decision(&self) -> SamplingDecision
Returns the sampling decision.
Trait Implementations§
source§impl Clone for SamplingMatch
impl Clone for SamplingMatch
source§fn clone(&self) -> SamplingMatch
fn clone(&self) -> SamplingMatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SamplingMatch
impl Debug for SamplingMatch
source§impl PartialEq for SamplingMatch
impl PartialEq for SamplingMatch
impl StructuralPartialEq for SamplingMatch
Auto Trait Implementations§
impl Freeze for SamplingMatch
impl RefUnwindSafe for SamplingMatch
impl Send for SamplingMatch
impl Sync for SamplingMatch
impl Unpin for SamplingMatch
impl UnwindSafe for SamplingMatch
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more