pub trait CallResultExt<R> {
// Required method
fn unwrap_or_resume(self) -> R;
}Expand description
Extension trait for re-raising a CallError on the caller’s thread.
Required Methods§
Sourcefn unwrap_or_resume(self) -> R
fn unwrap_or_resume(self) -> R
Returns the success value, or re-raises the original panic captured in the
CallError via CallError::resume.
Use this instead of Result::unwrap to panics with the original payload itself.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".