Trait nix::sys::time::TimeValLike
pub trait TimeValLike: Sized {
fn zero() -> Self { ... }
fn hours(hours: i64) -> Self { ... }
fn minutes(minutes: i64) -> Self { ... }
fn seconds(seconds: i64) -> Self;
fn milliseconds(milliseconds: i64) -> Self;
fn microseconds(microseconds: i64) -> Self;
fn nanoseconds(nanoseconds: i64) -> Self;
fn num_hours(&Self) -> i64 { ... }
fn num_minutes(&Self) -> i64 { ... }
fn num_seconds(&Self) -> i64;
fn num_milliseconds(&Self) -> i64;
fn num_microseconds(&Self) -> i64;
fn num_nanoseconds(&Self) -> i64;
}
Required Methods
fn microseconds(microseconds: i64) -> Self
fn milliseconds(milliseconds: i64) -> Self
fn nanoseconds(nanoseconds: i64) -> Self
fn num_microseconds(&Self) -> i64
fn num_milliseconds(&Self) -> i64
fn num_nanoseconds(&Self) -> i64
fn num_seconds(&Self) -> i64
fn seconds(seconds: i64) -> Self
Provided Methods
fn hours(hours: i64) -> Self
fn minutes(minutes: i64) -> Self
fn num_hours(&Self) -> i64
fn num_minutes(&Self) -> i64
fn zero() -> Self
Implementors
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
impl TimeValLike for TimeVal
fn milliseconds(milliseconds: i64) -> TimeVal
fn microseconds(microseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of nanoseconds. Some precision
will be lost
fn num_seconds(&Self) -> i64
fn num_milliseconds(&Self) -> i64
fn num_microseconds(&Self) -> i64
fn num_nanoseconds(&Self) -> i64