pub struct WasmPanicInfo {
pub file: String,
pub line: u32,
pub col: u32,
pub display: String,
pub stack: String,
}Expand description
Information about the panic that occurred, potentially useful to report.
Why not PanicInfo? PanicInfo is unable to be owned, doesn’t
implement Clone, and is !Send, making it unable to pass to a callback.
Fields§
§file: StringThe file that triggered the panic
line: u32The line the panic was triggered on
col: u32The column the panic was triggered on
display: StringEquivalent to PanicInfo’s to_string() method.
stack: StringThe full stack trace retrieved.
Trait Implementations§
Source§impl Debug for WasmPanicInfo
impl Debug for WasmPanicInfo
Auto Trait Implementations§
impl Freeze for WasmPanicInfo
impl RefUnwindSafe for WasmPanicInfo
impl Send for WasmPanicInfo
impl Sync for WasmPanicInfo
impl Unpin for WasmPanicInfo
impl UnwindSafe for WasmPanicInfo
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