Struct metrix::instruments::LabelFilter[][src]

pub struct LabelFilter<L> { /* fields omitted */ }

Implementations

impl<L> LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

pub fn new(label: L) -> Self[src]

pub fn predicate<P>(p: P) -> Self where
    P: Fn(&L) -> bool + Send + 'static, 
[src]

pub fn accept_all() -> Self[src]

pub fn accept_none() -> Self[src]

pub fn accept_another(&mut self, label: L)[src]

pub fn accepts(&self, label: &L) -> bool[src]

Trait Implementations

impl<L> Default for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<(L, L, L, L, L)> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<(L, L, L, L)> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<(L, L, L)> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<(L, L)> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<AcceptAllLabels> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<AcceptNoLabel> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L> From<AcceptOneLabel<L>> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<LL> From<L<LL>> for LabelFilter<LL> where
    LL: Eq + Send + 'static, 
[src]

impl<L> From<L> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

impl<L, P> From<LP<P>> for LabelFilter<L> where
    L: Eq + Send + 'static,
    P: Fn(&L) -> bool + Send + 'static, 
[src]

impl<L, P> From<LabelPredicate<P>> for LabelFilter<L> where
    L: Eq + Send + 'static,
    P: Fn(&L) -> bool + Send + 'static, 
[src]

impl<L> From<Vec<L, Global>> for LabelFilter<L> where
    L: Eq + Send + 'static, 
[src]

Auto Trait Implementations

impl<L> !RefUnwindSafe for LabelFilter<L>

impl<L> Send for LabelFilter<L> where
    L: Send

impl<L> !Sync for LabelFilter<L>

impl<L> Unpin for LabelFilter<L> where
    L: Unpin

impl<L> !UnwindSafe for LabelFilter<L>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,