Enum wasmer_c_api::wasm_c_api::wasi::wasi_version_t
source · #[repr(C)]pub enum wasi_version_t {
INVALID_VERSION,
LATEST,
SNAPSHOT0,
SNAPSHOT1,
WASIX32V1,
WASIX64V1,
}
Expand description
The version of WASI. This is determined by the imports namespace string.
Variants§
INVALID_VERSION
An invalid version.
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.
SNAPSHOT0
wasi_unstable
.
SNAPSHOT1
wasi_snapshot_preview1
.
WASIX32V1
wasix_32v1
.
WASIX64V1
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<wasi_version_t> for wasi_version_t
impl PartialEq<wasi_version_t> 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 StructuralEq for wasi_version_t
impl StructuralPartialEq for wasi_version_t
Auto Trait Implementations§
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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>
§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>
Gets the layout of the type.