Struct performance_mark_attribute::LogContext
source · pub struct LogContext {
pub function: String,
pub duration: Duration,
}
Expand description
Context passed to a custom logging function.
Fields§
§function: String
The name of the function being profiled.
duration: Duration
The time the function took to complete.
Auto Trait Implementations§
impl RefUnwindSafe for LogContext
impl Send for LogContext
impl Sync for LogContext
impl Unpin for LogContext
impl UnwindSafe for LogContext
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