Struct simics_api_sys::timespec
source · #[repr(C)]pub struct timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}
Expand description
POSIX.1b structure for a time value. This is like a `struct timeval’ but has nanoseconds instead of microseconds.
Fields§
§tv_sec: __time_t
Seconds.
tv_nsec: __syscall_slong_t
Nanoseconds.
Trait Implementations§
source§impl Ord for timespec
impl Ord for timespec
source§impl PartialOrd for timespec
impl PartialOrd for timespec
impl Copy for timespec
impl Eq for timespec
impl StructuralPartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)