[][src]Struct wasihost_core::wasi_snapshot_preview1::Subscription

pub struct Subscription {
    pub userdata: Userdata,
    pub u: SubscriptionU,
}

Subscription to an event.

Fields

userdata: Userdata

User-provided value that is attached to the subscription in the implementation and returned through event::userdata.

u: SubscriptionU

The type of the event to which to subscribe, and its contents

Trait Implementations

impl Clone for Subscription[src]

impl Copy for Subscription[src]

impl Debug for Subscription[src]

impl WasiValue for Subscription[src]

type NativeType = subscription

The native WASM type.

Auto Trait Implementations

impl RefUnwindSafe for Subscription

impl Send for Subscription

impl Sync for Subscription

impl Unpin for Subscription

impl UnwindSafe for Subscription

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