[][src]Enum wasmer_wasi_fl::WasiVersion

pub enum WasiVersion {
    Snapshot0,
    Snapshot1,
    Latest,
}

The version of WASI. This is determined by the imports namespace string.

Variants

Snapshot0

wasi_unstable.

Snapshot1

wasi_snapshot_preview1.

Latest

Latest version.

It's a “floating” version, i.e. it's an alias to the latest version (for the moment, Snapshot1). Using this version is a way to ensure that modules will run only if they come with the latest WASI version (in case of security issues for instance), by just updating the runtime.

Note that this version is never returned by an API. It is provided only by the user.

Trait Implementations

impl Clone for WasiVersion[src]

impl Copy for WasiVersion[src]

impl Debug for WasiVersion[src]

impl PartialEq<WasiVersion> for WasiVersion[src]

impl StructuralPartialEq for WasiVersion[src]

Auto Trait Implementations

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

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.