wasmer

Trait IntoResult

Source
pub trait IntoResult<T>
where T: WasmTypeList,
{ type Error: Error + Sync + Send + 'static; // Required method fn into_result(self) -> Result<T, Self::Error>; }
Expand description

The IntoResult trait turns a WasmTypeList into a Result<WasmTypeList, Self::Error>.

It is mostly used to turn result values of a Wasm function call into a Result.

Required Associated Types§

Source

type Error: Error + Sync + Send + 'static

The error type for this trait.

Required Methods§

Source

fn into_result(self) -> Result<T, Self::Error>

Transforms Self into a Result.

Implementations on Foreign Types§

Source§

impl<T, E> IntoResult<T> for Result<T, E>
where T: WasmTypeList, E: Error + Sync + Send + 'static,

Source§

type Error = E

Source§

fn into_result(self) -> Self

Implementors§