Skip to main content

ReplyError

Trait ReplyError 

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

Source

fn from_codec_error(err: Error) -> Self

Wrap a SCALE decode failure of a reply payload.

Source

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

Implementations on Foreign Types§

Source§

impl ReplyError for Error

Implementors§