pub struct AndSampler<A, B>(/* private fields */);Expand description
and combinator.
Trait Implementations§
Source§impl<A: Clone, B: Clone> Clone for AndSampler<A, B>
impl<A: Clone, B: Clone> Clone for AndSampler<A, B>
Source§fn clone(&self) -> AndSampler<A, B>
fn clone(&self) -> AndSampler<A, B>
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<A, B, T> Sampler<T> for AndSampler<A, B>
impl<A, B, T> Sampler<T> for AndSampler<A, B>
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<A, B> Freeze for AndSampler<A, B>
impl<A, B> RefUnwindSafe for AndSampler<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for AndSampler<A, B>
impl<A, B> Sync for AndSampler<A, B>
impl<A, B> Unpin for AndSampler<A, B>
impl<A, B> UnwindSafe for AndSampler<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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