Enum wasmer_wasix::syscalls::Snapshot0Clockid
#[repr(u32)]pub(crate) enum Snapshot0Clockid {
Realtime = 0,
Monotonic = 1,
ProcessCputimeId = 2,
ThreadCputimeId = 3,
Unknown = 255,
}
Expand description
Identifiers for clocks, snapshot0 version.
Variants§
Realtime = 0
The clock measuring real time. Time value zero corresponds with 1970-01-01T00:00:00Z.
Monotonic = 1
The store-wide monotonic clock, which is defined as a clock measuring real time, whose value cannot be adjusted and which cannot have negative clock jumps. The epoch of this clock is undefined. The absolute time value of this clock therefore has no meaning.
ProcessCputimeId = 2
The CPU-time clock associated with the current process.
ThreadCputimeId = 3
The CPU-time clock associated with the current thread.
Unknown = 255
The clock type is not known.
Trait Implementations§
§impl Clone for Snapshot0Clockid
impl Clone for Snapshot0Clockid
§fn clone(&self) -> Snapshot0Clockid
fn clone(&self) -> Snapshot0Clockid
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 more§impl Debug for Snapshot0Clockid
impl Debug for Snapshot0Clockid
§impl<'de> Deserialize<'de> for Snapshot0Clockid
impl<'de> Deserialize<'de> for Snapshot0Clockid
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Snapshot0Clockid, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Snapshot0Clockid, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&ArchivedJournalSnapshot0ClockidV1> for Snapshot0Clockid
impl From<&ArchivedJournalSnapshot0ClockidV1> for Snapshot0Clockid
source§fn from(val: &ArchivedJournalSnapshot0ClockidV1) -> Snapshot0Clockid
fn from(val: &ArchivedJournalSnapshot0ClockidV1) -> Snapshot0Clockid
Converts to this type from the input type.
§impl From<Clockid> for Snapshot0Clockid
impl From<Clockid> for Snapshot0Clockid
Workaround implementation because wit-bindgen
does not generate
type aliases, but instead creates the same filetype in each module
for use
statements in the .wit
file.
§fn from(other: Clockid) -> Snapshot0Clockid
fn from(other: Clockid) -> Snapshot0Clockid
Converts to this type from the input type.
source§impl From<JournalSnapshot0ClockidV1> for Snapshot0Clockid
impl From<JournalSnapshot0ClockidV1> for Snapshot0Clockid
source§fn from(val: JournalSnapshot0ClockidV1) -> Snapshot0Clockid
fn from(val: JournalSnapshot0ClockidV1) -> Snapshot0Clockid
Converts to this type from the input type.
§impl From<Snapshot0Clockid> for Clockid
impl From<Snapshot0Clockid> for Clockid
§fn from(other: Snapshot0Clockid) -> Clockid
fn from(other: Snapshot0Clockid) -> Clockid
Converts to this type from the input type.
source§impl From<Snapshot0Clockid> for JournalSnapshot0ClockidV1
impl From<Snapshot0Clockid> for JournalSnapshot0ClockidV1
source§fn from(val: Snapshot0Clockid) -> JournalSnapshot0ClockidV1
fn from(val: Snapshot0Clockid) -> JournalSnapshot0ClockidV1
Converts to this type from the input type.
§impl FromToNativeWasmType for Snapshot0Clockid
impl FromToNativeWasmType for Snapshot0Clockid
§fn to_native(self) -> <Snapshot0Clockid as FromToNativeWasmType>::Native
fn to_native(self) -> <Snapshot0Clockid as FromToNativeWasmType>::Native
Convert self to
Self::Native
. Read more§fn from_native(
n: <Snapshot0Clockid as FromToNativeWasmType>::Native,
) -> Snapshot0Clockid
fn from_native( n: <Snapshot0Clockid as FromToNativeWasmType>::Native, ) -> Snapshot0Clockid
§fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
Returns whether the given value is from the given store. Read more
§impl Hash for Snapshot0Clockid
impl Hash for Snapshot0Clockid
§impl PartialEq for Snapshot0Clockid
impl PartialEq for Snapshot0Clockid
§fn eq(&self, other: &Snapshot0Clockid) -> bool
fn eq(&self, other: &Snapshot0Clockid) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for Snapshot0Clockid
impl Serialize for Snapshot0Clockid
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFrom<u32> for Snapshot0Clockid
impl TryFrom<u32> for Snapshot0Clockid
§type Error = TryFromPrimitiveError<Snapshot0Clockid>
type Error = TryFromPrimitiveError<Snapshot0Clockid>
The type returned in the event of a conversion error.
§fn try_from(
number: u32,
) -> Result<Snapshot0Clockid, TryFromPrimitiveError<Snapshot0Clockid>>
fn try_from( number: u32, ) -> Result<Snapshot0Clockid, TryFromPrimitiveError<Snapshot0Clockid>>
Performs the conversion.
§impl TryFromPrimitive for Snapshot0Clockid
impl TryFromPrimitive for Snapshot0Clockid
type Primitive = u32
const NAME: &'static str = "Snapshot0Clockid"
fn try_from_primitive( number: <Snapshot0Clockid as TryFromPrimitive>::Primitive, ) -> Result<Snapshot0Clockid, TryFromPrimitiveError<Snapshot0Clockid>>
§impl ValueType for Snapshot0Clockid
impl ValueType for Snapshot0Clockid
§fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
This method is passed a byte slice which contains the byte
representation of
self
. It must zero out any bytes which are
uninitialized (e.g. padding bytes).impl Copy for Snapshot0Clockid
impl Eq for Snapshot0Clockid
impl StructuralPartialEq for Snapshot0Clockid
Auto Trait Implementations§
impl Freeze for Snapshot0Clockid
impl RefUnwindSafe for Snapshot0Clockid
impl Send for Snapshot0Clockid
impl Sync for Snapshot0Clockid
impl Unpin for Snapshot0Clockid
impl UnwindSafe for Snapshot0Clockid
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
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<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.§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> ⓘ
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
§impl<T> Upcastable for T
impl<T> Upcastable for T
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn
§impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
§unsafe fn from_array(
_store: &mut impl AsStoreMut,
array: <A1 as WasmTypeList>::Array,
) -> A1
unsafe fn from_array( _store: &mut impl AsStoreMut, array: <A1 as WasmTypeList>::Array, ) -> A1
Constructs
Self
based on an array of values. Read more§unsafe fn from_slice(
store: &mut impl AsStoreMut,
slice: &[RawValue],
) -> Result<A1, TryFromSliceError>
unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue], ) -> Result<A1, TryFromSliceError>
Constructs
Self
based on a slice of values. Read more§unsafe fn into_array(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::Array
unsafe fn into_array( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::Array
Builds and returns an array of type
Array
from a tuple
(list) of values. Read more§fn empty_array() -> <A1 as WasmTypeList>::Array
fn empty_array() -> <A1 as WasmTypeList>::Array
Allocates and return an empty array of type
Array
that
will hold a tuple (list) of values, usually to hold the
returned values of a WebAssembly function call.§unsafe fn from_c_struct(
_store: &mut impl AsStoreMut,
c_struct: <A1 as WasmTypeList>::CStruct,
) -> A1
unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: <A1 as WasmTypeList>::CStruct, ) -> A1
Builds a tuple (list) of values from a C struct of type
CStruct
. Read more§unsafe fn into_c_struct(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::CStruct
unsafe fn into_c_struct( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::CStruct
Builds and returns a C struct of type
CStruct
from a
tuple (list) of values. Read more§unsafe fn write_c_struct_to_ptr(
c_struct: <A1 as WasmTypeList>::CStruct,
_ptr: *mut RawValue,
)
unsafe fn write_c_struct_to_ptr( c_struct: <A1 as WasmTypeList>::CStruct, _ptr: *mut RawValue, )
Writes the contents of a C struct to an array of
RawValue
. Read more§fn wasm_types() -> &'static [Type]
fn wasm_types() -> &'static [Type]
Get the Wasm types for the tuple (list) of currently
represented values.