pub trait ReThrow {
// Required method
fn re_throw(self) -> !;
}Expand description
A type that can re-throw itself as a contract exception or fault.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl ReThrow for CallingError
Result<T, CallingError>::or_re_throw() aborts with the typed
LibraryExn::Calling exception (client-side interface path).
impl ReThrow for LibraryExn
Result<T, LibraryExn>::or_re_throw() aborts with the contained
library exception (typed, decodable by selector) rather than a fault.
impl ReThrow for RawException
impl ReThrow for RawExceptionRef<'_>
Re-throw to our caller: abort with the original wire bytes, verbatim.
No additional guest buffer; the return syscall still copies bytes to the
host. This is what plain (non-try_) generated methods do.