Skip to main content

Host

pub trait Host: Send {
    // Required method
    fn convert_error_code(
        &mut self,
        err: TrappableError<ErrorCode>,
    ) -> Result<ErrorCode>;
}
Available on crate feature p3 only.

Required Methods§

Source

fn convert_error_code( &mut self, err: TrappableError<ErrorCode>, ) -> Result<ErrorCode>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> Host for WasiCtxNamedView<'_, T>

Source§

fn convert_error_code( &mut self, error: TrappableError<ErrorCode>, ) -> Result<ErrorCode>

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Implementors§