Trait GuestErrorType

Source
pub trait GuestErrorType<'a> {
    type Context;

    // Required methods
    fn success() -> Self;
    fn from_error(e: GuestError, ctx: &Self::Context) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn success() -> Self

Source

fn from_error(e: GuestError, ctx: &Self::Context) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§