pub struct Measurement { /* private fields */ }Expand description
One opt-in instrumentation interval for a binary invocation.
Construct this before the measured operation and call Self::finish afterward.
When recording is off, construction performs no process sampling and finish
returns None.
Implementations§
Trait Implementations§
Source§impl Drop for Measurement
impl Drop for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnsafeUnpin for Measurement
impl UnwindSafe for Measurement
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