pub unsafe fn catch_unwind<R, F: FnOnce() -> R>( f: F, ) -> Result<R, Box<dyn Any + Send>>
Invoke a closure, capturing the cause of an unwinding panic if one occurs.