Enum wasmer_c_api::wasm_c_api::wasi::wasi_version_t
source · #[repr(C)]pub enum wasi_version_t {
INVALID_VERSION = -1,
LATEST = 0,
SNAPSHOT0 = 1,
SNAPSHOT1 = 2,
WASIX32V1 = 3,
WASIX64V1 = 4,
}
Expand description
The version of WASI. This is determined by the imports namespace string.
Variants§
INVALID_VERSION = -1
An invalid version.
LATEST = 0
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.
SNAPSHOT0 = 1
wasi_unstable
.
SNAPSHOT1 = 2
wasi_snapshot_preview1
.
WASIX32V1 = 3
wasix_32v1
.
WASIX64V1 = 4
wasix_64v1
.
Trait Implementations§
source§impl Clone for wasi_version_t
impl Clone for wasi_version_t
source§fn clone(&self) -> wasi_version_t
fn clone(&self) -> wasi_version_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for wasi_version_t
impl Debug for wasi_version_t
source§impl From<WasiVersion> for wasi_version_t
impl From<WasiVersion> for wasi_version_t
source§fn from(other: WasiVersion) -> Self
fn from(other: WasiVersion) -> Self
Converts to this type from the input type.
source§impl PartialEq for wasi_version_t
impl PartialEq for wasi_version_t
source§fn eq(&self, other: &wasi_version_t) -> bool
fn eq(&self, other: &wasi_version_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<wasi_version_t> for WasiVersion
impl TryFrom<wasi_version_t> for WasiVersion
impl Copy for wasi_version_t
impl Eq for wasi_version_t
impl StructuralPartialEq for wasi_version_t
Auto Trait Implementations§
impl Freeze for wasi_version_t
impl RefUnwindSafe for wasi_version_t
impl Send for wasi_version_t
impl Sync for wasi_version_t
impl Unpin for wasi_version_t
impl UnwindSafe for wasi_version_t
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref