Struct matrix_sdk_common::tracing_timer::TracingTimer
source · pub struct TracingTimer { /* private fields */ }
Expand description
A named RAII that will show on Drop how long its covered section took to execute.
Implementations§
source§impl TracingTimer
impl TracingTimer
sourcepub fn new_debug(
callsite: &'static DefaultCallsite,
id: String,
level: Level,
) -> Self
pub fn new_debug( callsite: &'static DefaultCallsite, id: String, level: Level, ) -> Self
Create a new TracingTimer
at the debug
log level.
Trait Implementations§
source§impl Debug for TracingTimer
impl Debug for TracingTimer
Auto Trait Implementations§
impl Freeze for TracingTimer
impl !RefUnwindSafe for TracingTimer
impl Send for TracingTimer
impl Sync for TracingTimer
impl Unpin for TracingTimer
impl !UnwindSafe for TracingTimer
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