pub struct TraceFrame { /* private fields */ }Expand description
Guard object representing an active traced function invocation.
Implementations§
Source§impl TraceFrame
impl TraceFrame
Sourcepub fn enter(meta: FunctionMeta, values: Vec<ValueSlot>) -> TraceFrame
pub fn enter(meta: FunctionMeta, values: Vec<ValueSlot>) -> TraceFrame
Enters a traced function and records the corresponding event.
Sourcepub fn finish_return<T>(&mut self, result: &T)
pub fn finish_return<T>(&mut self, result: &T)
Records a successful function return.
Sourcepub fn finish_error(&mut self, message: impl Into<String>)
pub fn finish_error(&mut self, message: impl Into<String>)
Records an error or unwind outcome for the current frame.
Trait Implementations§
Source§impl Debug for TraceFrame
impl Debug for TraceFrame
Auto Trait Implementations§
impl Freeze for TraceFrame
impl RefUnwindSafe for TraceFrame
impl Send for TraceFrame
impl Sync for TraceFrame
impl Unpin for TraceFrame
impl UnsafeUnpin for TraceFrame
impl UnwindSafe for TraceFrame
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