Enum wasmtime_wasi::preview2::SystemTimeSpec
source · pub enum SystemTimeSpec {
SymbolicNow,
Absolute(SystemTime),
}
Expand description
A value for specifying a time.
Variants§
SymbolicNow
A value which always represents the current time, in symbolic form, so that even as time elapses, it continues to represent the current time.
Absolute(SystemTime)
An absolute time value.
Implementations§
source§impl SystemTimeSpec
impl SystemTimeSpec
sourcepub fn from_std(std: SystemTimeSpec) -> SystemTimeSpec
pub fn from_std(std: SystemTimeSpec) -> SystemTimeSpec
Constructs a new instance of Self
from the given
fs_set_times::SystemTimeSpec
.
sourcepub const fn into_std(self) -> SystemTimeSpec
pub const fn into_std(self) -> SystemTimeSpec
Constructs a new instance of fs_set_times::SystemTimeSpec
from the
given Self
.
Trait Implementations§
source§impl Debug for SystemTimeSpec
impl Debug for SystemTimeSpec
source§impl From<SystemTime> for SystemTimeSpec
impl From<SystemTime> for SystemTimeSpec
source§fn from(time: SystemTime) -> SystemTimeSpec
fn from(time: SystemTime) -> SystemTimeSpec
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemTimeSpec
impl RefUnwindSafe for SystemTimeSpec
impl Send for SystemTimeSpec
impl Sync for SystemTimeSpec
impl Unpin for SystemTimeSpec
impl UnwindSafe for SystemTimeSpec
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
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more