Skip to main content

catch_unwind

Function catch_unwind 

Source
pub fn catch_unwind<F, R>(f: F) -> Result<R, Box<dyn Any + Send + 'static>>
where F: FnOnce() -> R + UnwindSafe,
Available on non-target_family=wasm and crate feature panic only.
Expand description

Like std::panic::catch_unwind, but can unwind panics even if install_enhanced_handler has been called.