pub trait ReplyError: Sized {
// Required methods
fn from_codec_error(err: Error) -> Self;
fn userspace_panic_payload(&self) -> Option<&[u8]>;
}Expand description
Env error type that decode_reply_or_throw can inspect to recover an
application-level throws value from a userspace-panic reply.
Required Methods§
Sourcefn from_codec_error(err: Error) -> Self
fn from_codec_error(err: Error) -> Self
Wrap a SCALE decode failure of a reply payload.
Sourcefn userspace_panic_payload(&self) -> Option<&[u8]>
fn userspace_panic_payload(&self) -> Option<&[u8]>
If this error is a userspace panic carrying a reply payload, return that payload.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".