pub enum SamplingDecision {
Keep,
Drop,
}
Expand description
A sampling decision.
Variants§
Keep
The item is sampled and should not be dropped.
Drop
The item is not sampled and should be dropped.
Implementations§
Trait Implementations§
source§impl Clone for SamplingDecision
impl Clone for SamplingDecision
source§fn clone(&self) -> SamplingDecision
fn clone(&self) -> SamplingDecision
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 SamplingDecision
impl Debug for SamplingDecision
source§impl Display for SamplingDecision
impl Display for SamplingDecision
source§impl Hash for SamplingDecision
impl Hash for SamplingDecision
source§impl Ord for SamplingDecision
impl Ord for SamplingDecision
source§fn cmp(&self, other: &SamplingDecision) -> Ordering
fn cmp(&self, other: &SamplingDecision) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SamplingDecision
impl PartialEq for SamplingDecision
source§impl PartialOrd for SamplingDecision
impl PartialOrd for SamplingDecision
impl Copy for SamplingDecision
impl Eq for SamplingDecision
impl StructuralPartialEq 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 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
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.