pub struct InstrumentAdapter<L, I> { /* private fields */ }Implementations§
Source§impl<L, I> InstrumentAdapter<L, I>
impl<L, I> InstrumentAdapter<L, I>
pub fn new(instrument: I) -> Self
pub fn accept<F: Into<LabelFilter<L>>>(accept: F, instrument: I) -> Self
pub fn for_label(label: L, instrument: I) -> Self
pub fn for_labels(labels: Vec<L>, instrument: I) -> Self
pub fn by_predicate<P>(predicate: P, instrument: I) -> Self
pub fn deaf(instrument: I) -> Self
pub fn accept_no_labels(self) -> Self
pub fn accept_all_labels(self) -> Self
pub fn modify_with<F>(self, f: F) -> Self
pub fn instrument(&self) -> &I
Trait Implementations§
Source§impl<L, I> From<I> for InstrumentAdapter<L, I>
impl<L, I> From<I> for InstrumentAdapter<L, I>
Source§fn from(instrument: I) -> InstrumentAdapter<L, I>
fn from(instrument: I) -> InstrumentAdapter<L, I>
Converts to this type from the input type.
Source§impl<L, I> HandlesObservations for InstrumentAdapter<L, I>
impl<L, I> HandlesObservations for InstrumentAdapter<L, I>
type Label = L
fn handle_observation( &mut self, observation: &Observation<Self::Label>, ) -> usize
Source§impl<L, I> PutsSnapshot for InstrumentAdapter<L, I>where
L: Send + 'static,
I: Instrument,
impl<L, I> PutsSnapshot for InstrumentAdapter<L, I>where
L: Send + 'static,
I: Instrument,
Source§fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
Puts the current snapshot values into the given
Snapshot thereby
following the guidelines of PutsSnapshot.Auto Trait Implementations§
impl<L, I> Freeze for InstrumentAdapter<L, I>
impl<L, I> !RefUnwindSafe for InstrumentAdapter<L, I>
impl<L, I> Send for InstrumentAdapter<L, I>
impl<L, I> !Sync for InstrumentAdapter<L, I>
impl<L, I> Unpin for InstrumentAdapter<L, I>
impl<L, I> !UnwindSafe for InstrumentAdapter<L, I>
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