use crate::catch_unwind::CatchUnwind; use std::future::Future; use std::panic::UnwindSafe; pub(crate) trait ProcFutureExt: Future { fn catch_unwind(self) -> CatchUnwind<Self> where Self: Sized + UnwindSafe, { CatchUnwind::new(self) } } impl<T: ?Sized> ProcFutureExt for T where T: Future {}