Configures the maximum number of WebAssembly frames to collect in backtraces. A backtrace may be collected whenever an error is returned from a host function call through to WebAssembly or when WebAssembly itself hits a trap condition, such as an out-of-bounds memory access. This flag indicates, in these conditions, whether the backtrace is collected or not and how many frames should be collected
(&mut self, limit: Option<NonZeroUsize>)
| 561 | /// |
| 562 | /// [`WasmBacktrace`]: crate::WasmBacktrace |
| 563 | pub fn wasm_backtrace_max_frames(&mut self, limit: Option<NonZeroUsize>) -> &mut Self { |
| 564 | self.wasm_backtrace_max_frames = limit; |
| 565 | self |
| 566 | } |
| 567 | |
| 568 | /// Configures whether to generate native unwind information |
| 569 | /// (e.g. `.eh_frame` on Linux). |
no outgoing calls