pub fn catch_unwind<R, F: FnOnce() -> R + UnwindSafe>( f: F, ) -> Result<R, Payload>
Like std::panic::catch_unwind.
std::panic::catch_unwind