#[repr(C)]pub struct TimeSpec {
pub tv_sec: c_long,
pub tv_nsec: c_long,
}Expand description
用于指定秒和纳秒精度的时间
Fields§
§tv_sec: c_long秒 (seconds)
tv_nsec: c_long纳秒 (nanoseconds)
Implementations§
Source§impl TimeSpec
impl TimeSpec
Sourcepub const UTIME_OMIT: c_long = 1_073_741_822i64
pub const UTIME_OMIT: c_long = 1_073_741_822i64
特殊值:不改变此时间(UTIME_OMIT,用于 utimensat)
Sourcepub fn monotonic_now() -> Self
pub fn monotonic_now() -> Self
Sourcepub fn to_timeval(&self) -> timeval
pub fn to_timeval(&self) -> timeval
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.