Struct fuchsia_inspect_contrib::ProfileDuration
source · pub struct ProfileDuration { /* private fields */ }
Expand description
A guard value to manually control entry/exit of profile durations.
Implementations§
source§impl ProfileDuration
impl ProfileDuration
sourcepub fn lazy_node_callback() -> Pin<Box<dyn Future<Output = Result<Inspector, Error>> + Send + 'static>>
pub fn lazy_node_callback() -> Pin<Box<dyn Future<Output = Result<Inspector, Error>> + Send + 'static>>
Function to be passed to fuchsia_inspect::Node::record_lazy_child
to record profiling data.
Auto Trait Implementations§
impl Freeze for ProfileDuration
impl !RefUnwindSafe for ProfileDuration
impl Send for ProfileDuration
impl Sync for ProfileDuration
impl Unpin for ProfileDuration
impl !UnwindSafe for ProfileDuration
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