pub struct StandardClock;Expand description
Default implementation of Clock that delegates to the underlying WASI runtime.
Trait Implementations§
Source§impl Clock for StandardClock
impl Clock for StandardClock
Source§fn clock_time_get<Wasm: WasmAccess + WasmAccessName + 'static>(
clock_id: Clockid,
precision: Timestamp,
time_ptr: *mut Timestamp,
) -> Errno
fn clock_time_get<Wasm: WasmAccess + WasmAccessName + 'static>( clock_id: Clockid, precision: Timestamp, time_ptr: *mut Timestamp, ) -> Errno
Gets the current time for the specified clock. Read more
Source§fn clock_res_get<Wasm: WasmAccess + WasmAccessName + 'static>(
clock_id: Clockid,
resolution_ptr: *mut Timestamp,
) -> Errno
fn clock_res_get<Wasm: WasmAccess + WasmAccessName + 'static>( clock_id: Clockid, resolution_ptr: *mut Timestamp, ) -> Errno
Gets the resolution of the specified clock. Read more
Auto Trait Implementations§
impl Freeze for StandardClock
impl RefUnwindSafe for StandardClock
impl Send for StandardClock
impl Sync for StandardClock
impl Unpin for StandardClock
impl UnsafeUnpin for StandardClock
impl UnwindSafe for StandardClock
Blanket Implementations§
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