Implementations
impl TimeSpec
pub const fn tv_sec(&Self) -> time_tpub const fn tv_nsec(&Self) -> libc::c_longpub const fn from_duration(duration: Duration) -> Selfpub const fn from_timespec(timespec: timespec) -> SelfTrait Implementations
impl Debug for TimeSpec
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Display for TimeSpec
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Resultimpl Hash for TimeSpec
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl Ord for TimeSpec
fn cmp(&Self, other: &TimeSpec) -> cmp::Orderingimpl PartialOrd<TimeSpec> for TimeSpec
fn partial_cmp(&Self, other: &TimeSpec) -> Option<cmp::Ordering>impl StructuralEq for TimeSpecimpl StructuralPartialEq for TimeSpecimpl TimeValLike for TimeSpec
fn milliseconds(milliseconds: i64) -> TimeSpecfn microseconds(microseconds: i64) -> TimeSpec
Makes a new TimeSpec with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeSpec
Makes a new TimeSpec with given number of nanoseconds.
fn num_seconds(&Self) -> i64fn num_milliseconds(&Self) -> i64fn num_microseconds(&Self) -> i64fn num_nanoseconds(&Self) -> i64Auto Trait Implementations
impl RefUnwindSafe for TimeSpecimpl UnwindSafe for TimeSpecBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T