pub struct NullSampler;Expand description
This samples no traces.
Trait Implementations§
Source§impl Clone for NullSampler
impl Clone for NullSampler
Source§fn clone(&self) -> NullSampler
fn clone(&self) -> NullSampler
Returns a duplicate 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 NullSampler
impl Debug for NullSampler
Source§impl<T> Sampler<T> for NullSampler
impl<T> Sampler<T> for NullSampler
Source§fn is_sampled(&self, _span: &CandidateSpan<'_, T>) -> bool
fn is_sampled(&self, _span: &CandidateSpan<'_, T>) -> bool
This method decides whether a trace with given
span should be sampled.Source§fn or<U>(self, other: U) -> OrSampler<Self, U>
fn or<U>(self, other: U) -> OrSampler<Self, U>
Returns the sampler that samples a trace if
self or other decides to sample it.Source§fn and<U>(self, other: U) -> AndSampler<Self, U>
fn and<U>(self, other: U) -> AndSampler<Self, U>
Returns the sampler that samples a trace if both of
self and other decides to sample it.Auto Trait Implementations§
impl Freeze for NullSampler
impl RefUnwindSafe for NullSampler
impl Send for NullSampler
impl Sync for NullSampler
impl Unpin for NullSampler
impl UnwindSafe for NullSampler
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