Struct unwind::UnwindingContext
source · pub struct UnwindingContext { /* private fields */ }
Expand description
This is the context/state that is used during unwinding and passed around
to the callback functions in the various unwinding stages, such as in _Unwind_Resume()
.
Because those callbacks follow an extern “C” ABI, this structure is passed as a pointer rather than directly by value or by reference. Thus, it must be manually freed when unwinding is finished (or if it fails in the middle) in order to avoid leaking memory, e.g., not dropping reference counts.
Trait Implementations§
source§impl From<UnwindingContext> for (StackFrameIter, KillReason, TaskRef)
impl From<UnwindingContext> for (StackFrameIter, KillReason, TaskRef)
source§fn from(val: UnwindingContext) -> Self
fn from(val: UnwindingContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UnwindingContext
impl Send for UnwindingContext
impl !Sync for UnwindingContext
impl Unpin for UnwindingContext
impl !UnwindSafe for UnwindingContext
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