pub struct Timespec {
pub sec: i64,
pub nsec: i32,
}Expand description
A UFS timestamp: whole seconds since the Unix epoch plus a nanosecond fraction. UFS2 stores seconds as a signed 64-bit value; UFS1 as 32-bit (widened here). The nanosecond field is a signed 32-bit count.
Fields§
§sec: i64Whole seconds since the Unix epoch (may be negative before 1970).
nsec: i32Nanoseconds within the second.
Trait Implementations§
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 UnsafeUnpin 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