[−][src]Trait maybe_unwind::FutureMaybeUnwindExt
An extension trait for Future
s that provides an adaptor for capturing
the unwinding panic information.
Provided methods
ⓘImportant traits for MaybeUnwind<F>fn maybe_unwind(self) -> MaybeUnwind<Self> where
Self: UnwindSafe,
ⓘImportant traits for MaybeUnwind<F>
Self: UnwindSafe,
Catches unwinding panics while polling the future.
This is a variant of catch_unwind
that also captures
the panic information.
Example
use maybe_unwind::FutureMaybeUnwindExt as _; maybe_unwind::set_hook(); let res = do_something_async().maybe_unwind().await;