pub struct TraceSession { /* private fields */ }Expand description
The owning lifetime of a trace. TraceSession::finish is the
explicit reporting boundary; Drop still finalizes the file durably,
but as an abandoned capture, never a complete one.
Implementations§
Source§impl TraceSession
impl TraceSession
Sourcepub fn finish(self) -> Result<(), TraceError>
pub fn finish(self) -> Result<(), TraceError>
End the capture explicitly: drain the writer (bounded), then report the first failure, cap or panic, if any. The only path that can leave a file marked complete.
Trait Implementations§
Source§impl Drop for TraceSession
impl Drop for TraceSession
Auto Trait Implementations§
impl !RefUnwindSafe for TraceSession
impl !UnwindSafe for TraceSession
impl Freeze for TraceSession
impl Send for TraceSession
impl Sync for TraceSession
impl Unpin for TraceSession
impl UnsafeUnpin for TraceSession
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