pub struct InstrumentHooks(/* private fields */);Implementations§
Source§impl InstrumentHooks
impl InstrumentHooks
pub fn new() -> Option<Self>
pub fn is_instrumented(&self) -> bool
pub fn start_benchmark(&self) -> Result<(), u8>
pub fn stop_benchmark(&self) -> Result<(), u8>
pub fn set_executed_benchmark(&self, uri: &str) -> Result<(), u8>
pub fn set_integration(&self, name: &str, version: &str) -> Result<(), u8>
pub fn add_benchmark_timestamps(&self, start: u64, end: u64)
pub fn current_timestamp() -> u64
pub fn disable_callgrind_markers()
Trait Implementations§
Source§impl Drop for InstrumentHooks
impl Drop for InstrumentHooks
Source§impl PartialEq for InstrumentHooks
impl PartialEq for InstrumentHooks
impl Send for InstrumentHooks
impl StructuralPartialEq for InstrumentHooks
impl Sync for InstrumentHooks
Auto Trait Implementations§
impl Freeze for InstrumentHooks
impl RefUnwindSafe for InstrumentHooks
impl Unpin for InstrumentHooks
impl UnsafeUnpin for InstrumentHooks
impl UnwindSafe for InstrumentHooks
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