pub struct SamplingDecision {
pub priority: Option<SamplingPriority>,
pub mechanism: Option<SamplingMechanism>,
}Expand description
Represents a sampling decision for a trace.
Contains the priority level and the mechanism that made the decision.
Fields§
§priority: Option<SamplingPriority>The sampling priority indicating whether the trace should be kept or rejected.
mechanism: Option<SamplingMechanism>The mechanism that made the sampling decision.
Trait Implementations§
Source§impl Clone for SamplingDecision
impl Clone for SamplingDecision
Source§fn clone(&self) -> SamplingDecision
fn clone(&self) -> SamplingDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SamplingDecision
impl Debug for SamplingDecision
impl Copy for SamplingDecision
Auto Trait Implementations§
impl Freeze for SamplingDecision
impl RefUnwindSafe for SamplingDecision
impl Send for SamplingDecision
impl Sync for SamplingDecision
impl Unpin for SamplingDecision
impl UnsafeUnpin for SamplingDecision
impl UnwindSafe for SamplingDecision
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