Skip to main content

CallResultExt

Trait CallResultExt 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl<R> CallResultExt<R> for Result<R, CallError>

Implementors§