#[repr(C)]pub struct Timespec {
pub seconds: usize,
pub nanoseconds: usize,
}
Expand description
A Linux timespec
structure.
This is similar to Duration
but matches the memory layout of timespec
.
Fields§
§seconds: usize
§nanoseconds: usize
Implementations§
Trait Implementations§
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