[][src]Struct metrix::instruments::InstrumentAdapter

pub struct InstrumentAdapter<L, I> { /* fields omitted */ }

Methods

impl<L, I> InstrumentAdapter<L, I> where
    L: Eq + Send + 'static,
    I: Instrument
[src]

pub fn new(instrument: I) -> Self[src]

pub fn accept<F: Into<LabelFilter<L>>>(accept: F, instrument: I) -> Self[src]

pub fn for_label(label: L, instrument: I) -> Self[src]

pub fn for_labels(labels: Vec<L>, instrument: I) -> Self[src]

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

pub fn deaf(instrument: I) -> Self[src]

pub fn accept_no_labels(self) -> Self[src]

pub fn accept_all_labels(self) -> Self[src]

pub fn modify_with<F>(self, f: F) -> Self where
    F: Fn(&L, Update) -> Update + Send + 'static, 
[src]

pub fn instrument(&self) -> &I[src]

Trait Implementations

impl<L, I> From<I> for InstrumentAdapter<L, I> where
    L: Clone + Eq + Send + 'static,
    I: Instrument
[src]

impl<L, I> HandlesObservations for InstrumentAdapter<L, I> where
    L: Eq + Send + 'static,
    I: Instrument
[src]

type Label = L

impl<L, I> PutsSnapshot for InstrumentAdapter<L, I> where
    L: Send + 'static,
    I: Instrument
[src]

Auto Trait Implementations

impl<L, I> !RefUnwindSafe for InstrumentAdapter<L, I>

impl<L, I> Send for InstrumentAdapter<L, I> where
    I: Send,
    L: Send

impl<L, I> !Sync for InstrumentAdapter<L, I>

impl<L, I> Unpin for InstrumentAdapter<L, I> where
    I: Unpin,
    L: Unpin

impl<L, I> !UnwindSafe for InstrumentAdapter<L, I>

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<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>,