pub struct BlkTraceSession { /* private fields */ }Expand description
A live tracing session.
Created by BlkTrace::monitor. Call BlkTraceSession::shutdown to
stop tracing and collect the events; dropping it stops the kernel tracer
but discards the events.
Implementations§
Source§impl BlkTraceSession
impl BlkTraceSession
Sourcepub async fn shutdown_async(self) -> Result<BlkTraceReport, BlktraceError>
Available on crate feature async only.
pub async fn shutdown_async(self) -> Result<BlkTraceReport, BlktraceError>
async only.Async version of BlkTraceSession::shutdown.
Source§impl BlkTraceSession
impl BlkTraceSession
Sourcepub fn shutdown(self) -> Result<BlkTraceReport, BlktraceError>
pub fn shutdown(self) -> Result<BlkTraceReport, BlktraceError>
Stops tracing and returns everything that was recorded.
Trait Implementations§
Source§impl Drop for BlkTraceSession
impl Drop for BlkTraceSession
Auto Trait Implementations§
impl !RefUnwindSafe for BlkTraceSession
impl !UnwindSafe for BlkTraceSession
impl Freeze for BlkTraceSession
impl Send for BlkTraceSession
impl Sync for BlkTraceSession
impl Unpin for BlkTraceSession
impl UnsafeUnpin for BlkTraceSession
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