pub struct Instrumented<T> { /* private fields */ }Expand description
A stop policy or progress sink whose calls are recorded in a span.
It is 'static whenever the wrapped value is, so it can go wherever the
original went: into a codec context, a spawned thread, or an
Arc<dyn Stop>. may_stop and may_report always return true, so
callers that skip no-op policies still make the calls being measured.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for Instrumented<T>
impl<T: Clone> Clone for Instrumented<T>
Source§impl<T: Debug> Debug for Instrumented<T>
impl<T: Debug> Debug for Instrumented<T>
Source§impl<T: Report> Report for Instrumented<T>
impl<T: Report> Report for Instrumented<T>
Source§impl<T: Stop> Stop for Instrumented<T>
impl<T: Stop> Stop for Instrumented<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Instrumented<T>
impl<T> !UnwindSafe for Instrumented<T>
impl<T> Freeze for Instrumented<T>where
T: Freeze,
impl<T> Send for Instrumented<T>where
T: Send,
impl<T> Sync for Instrumented<T>where
T: Sync,
impl<T> Unpin for Instrumented<T>where
T: Unpin,
impl<T> UnsafeUnpin for Instrumented<T>where
T: UnsafeUnpin,
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