Struct wasmtime_runtime::Backtrace
source · pub struct Backtrace(/* private fields */);
Expand description
A WebAssembly stack trace.
Implementations§
source§impl Backtrace
impl Backtrace
sourcepub fn new(limits: *const VMRuntimeLimits) -> Backtrace
pub fn new(limits: *const VMRuntimeLimits) -> Backtrace
Capture the current Wasm stack in a backtrace.
sourcepub fn trace(
limits: *const VMRuntimeLimits,
f: impl FnMut(Frame) -> ControlFlow<()>
)
pub fn trace( limits: *const VMRuntimeLimits, f: impl FnMut(Frame) -> ControlFlow<()> )
Walk the current Wasm stack, calling f
for each frame we walk.
sourcepub fn frames<'a>(
&'a self
) -> impl ExactSizeIterator<Item = &'a Frame> + DoubleEndedIterator + 'a
pub fn frames<'a>( &'a self ) -> impl ExactSizeIterator<Item = &'a Frame> + DoubleEndedIterator + 'a
Iterate over the frames inside this backtrace.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backtrace
impl RefUnwindSafe for Backtrace
impl Send for Backtrace
impl Sync for Backtrace
impl Unpin for Backtrace
impl UnwindSafe for Backtrace
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