Struct rustracing::sampler::AllSampler [−][src]
pub struct AllSampler;
This samples all traces.
Trait Implementations
impl Debug for AllSampler
[src]
impl Debug for AllSampler
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AllSampler
[src]
impl Clone for AllSampler
fn clone(&self) -> AllSampler
[src]
fn clone(&self) -> AllSampler
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Sampler<T> for AllSampler
[src]
impl<T> Sampler<T> for AllSampler
fn is_sampled(&self, _span: &CandidateSpan<T>) -> bool
[src]
fn is_sampled(&self, _span: &CandidateSpan<T>) -> bool
This method decides whether a trace with given span
should be sampled.
fn or<U>(self, other: U) -> OrSampler<Self, U> where
Self: Sized,
U: Sampler<T>,
[src]
fn or<U>(self, other: U) -> OrSampler<Self, U> where
Self: Sized,
U: Sampler<T>,
Returns the sampler that samples a trace if self
or other
decides to sample it.
fn and<U>(self, other: U) -> AndSampler<Self, U> where
Self: Sized,
U: Sampler<T>,
[src]
fn and<U>(self, other: U) -> AndSampler<Self, U> where
Self: Sized,
U: Sampler<T>,
Returns the sampler that samples a trace if both of self
and other
decides to sample it.
fn boxed(self) -> BoxSampler<T> where
Self: Sized + Send + Sync + 'static,
[src]
fn boxed(self) -> BoxSampler<T> where
Self: Sized + Send + Sync + 'static,
Converts into BoxSampler
.
Auto Trait Implementations
impl Send for AllSampler
impl Send for AllSampler
impl Sync for AllSampler
impl Sync for AllSampler