Struct hermit_abi::timespec
source · #[repr(C)]pub struct timespec {
pub tv_sec: time_t,
pub tv_nsec: i32,
}
Expand description
timespec
is used by clock_gettime
to retrieve the
current time
Fields§
§tv_sec: time_t
seconds
tv_nsec: i32
nanoseconds
Trait Implementations§
impl Copy for timespec
Auto Trait Implementations§
impl Freeze for timespec
impl RefUnwindSafe for timespec
impl Send for timespec
impl Sync for timespec
impl Unpin for timespec
impl UnwindSafe for timespec
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