#[repr(C)]pub enum FrameTrust {
None = 0,
Scan = 1,
CFIScan = 2,
FP = 3,
CFI = 4,
Prewalked = 5,
Context = 6,
}
Expand description
Indicates how well the instruction pointer derived during stack walking is trusted. Since the stack walker can resort to stack scanning, it can wind up with dubious frames.
In rough order of “trust metric”.
Variants§
None = 0
Unknown trust.
Scan = 1
Scanned the stack, found this (lowest precision).
CFIScan = 2
Found while scanning stack using call frame info.
FP = 3
Derived from frame pointer.
CFI = 4
Derived from call frame info.
Prewalked = 5
Explicitly provided by some external stack walker.
Context = 6
Given as instruction pointer in a context (highest precision).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameTrust
impl RefUnwindSafe for FrameTrust
impl Send for FrameTrust
impl Sync for FrameTrust
impl Unpin for FrameTrust
impl UnwindSafe for FrameTrust
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