pub struct ShutdownHandle { /* private fields */ }Expand description
A handle that can be used to shutdown the profiling layer.
It will signal the reporter thread to shutdown and wait for it to finish. This is useful to ensure that all data is flushed before the process exits.
The shutdown procedure is also done when the ShutdownHandle is dropped.
Implementations§
Trait Implementations§
Source§impl Drop for ShutdownHandle
impl Drop for ShutdownHandle
Auto Trait Implementations§
impl Freeze for ShutdownHandle
impl RefUnwindSafe for ShutdownHandle
impl Send for ShutdownHandle
impl Sync for ShutdownHandle
impl Unpin for ShutdownHandle
impl UnsafeUnpin for ShutdownHandle
impl UnwindSafe for ShutdownHandle
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