tokio_unix_ipc::panic

Function catch_panic

Source
pub fn catch_panic<F: FnOnce() -> R, R>(func: F) -> Result<R, PanicInfo>
Expand description

Invokes a function and captures the panic.

The captured panic info will only be fully filled if the panic hook has been installed (see init_panic_hook).