[−][src]Struct metrix::instruments::InstrumentAdapter
Methods
impl<L, I> InstrumentAdapter<L, I> where
L: Eq + Send + 'static,
I: Instrument,
[src]
L: Eq + Send + 'static,
I: Instrument,
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]
P: Fn(&L) -> bool + Send + 'static,
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]
F: Fn(&L, Update) -> Update + Send + 'static,
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]
L: Clone + Eq + Send + 'static,
I: Instrument,
fn from(instrument: I) -> InstrumentAdapter<L, I>
[src]
impl<L, I> HandlesObservations for InstrumentAdapter<L, I> where
L: Eq + Send + 'static,
I: Instrument,
[src]
L: Eq + Send + 'static,
I: Instrument,
type Label = L
fn handle_observation(
&mut self,
observation: &Observation<Self::Label>
) -> usize
[src]
&mut self,
observation: &Observation<Self::Label>
) -> usize
impl<L, I> PutsSnapshot for InstrumentAdapter<L, I> where
L: Send + 'static,
I: Instrument,
[src]
L: Send + 'static,
I: Instrument,
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
[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,
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,
I: Unpin,
L: Unpin,
impl<L, I> !UnwindSafe for InstrumentAdapter<L, I>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,