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