Implementations
impl TimeSpec
pub const fn tv_sec(&Self) -> time_t
pub const fn tv_nsec(&Self) -> libc::c_long
pub const fn from_duration(duration: Duration) -> Self
pub const fn from_timespec(timespec: timespec) -> Self
Trait Implementations
impl Debug for TimeSpec
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for TimeSpec
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Hash for TimeSpec
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl Ord for TimeSpec
fn cmp(&Self, other: &TimeSpec) -> cmp::Ordering
impl PartialOrd<TimeSpec> for TimeSpec
fn partial_cmp(&Self, other: &TimeSpec) -> Option<cmp::Ordering>
impl StructuralEq for TimeSpec
impl StructuralPartialEq for TimeSpec
impl TimeValLike for TimeSpec
fn milliseconds(milliseconds: i64) -> TimeSpec
fn 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) -> i64
fn num_milliseconds(&Self) -> i64
fn num_microseconds(&Self) -> i64
fn num_nanoseconds(&Self) -> i64
Auto Trait Implementations
impl RefUnwindSafe for TimeSpec
impl UnwindSafe for TimeSpec
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T