[][src]Struct witx_gen::WasiValueError

pub struct WasiValueError<T: WasiValue>(_, _);

Error type for representing a conversion error from the native WASM value to the Rust value.

Methods

impl<T: WasiValue> WasiValueError<T>[src]

pub fn as_native(self) -> T::NativeType[src]

Returns the value that failed to convert.

Trait Implementations

impl<T: WasiValue> Clone for WasiValueError<T>[src]

impl<T: WasiValue> Debug for WasiValueError<T>[src]

impl<T: WasiValue> Display for WasiValueError<T>[src]

impl<T: WasiValue> Error for WasiValueError<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for WasiValueError<T> where
    <T as WasiValue>::NativeType: RefUnwindSafe

impl<T> Send for WasiValueError<T> where
    <T as WasiValue>::NativeType: Send

impl<T> Sync for WasiValueError<T> where
    <T as WasiValue>::NativeType: Sync

impl<T> Unpin for WasiValueError<T> where
    <T as WasiValue>::NativeType: Unpin

impl<T> UnwindSafe for WasiValueError<T> where
    <T as WasiValue>::NativeType: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.