#[repr(C)]pub struct timespec {
pub tv_sec: time_t,
pub tv_nsec: i32,
}
Expand description
Represent the number of seconds and nanoseconds since the Epoch (1970-01-01 00:00:00 +0000 (UTC))
Fields§
§tv_sec: time_t
seconds
tv_nsec: i32
nanoseconds
Implementations§
Trait Implementations§
Source§impl From<SystemTime> for timespec
impl From<SystemTime> for timespec
Source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Converts to this type from the input type.
Source§impl From<timespec> for SystemTime
impl From<timespec> for SystemTime
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