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) -> Selffn milliseconds(milliseconds: i64) -> Selffn nanoseconds(nanoseconds: i64) -> Selffn num_microseconds(&Self) -> i64fn num_milliseconds(&Self) -> i64fn num_nanoseconds(&Self) -> i64fn num_seconds(&Self) -> i64fn seconds(seconds: i64) -> SelfProvided Methods
fn hours(hours: i64) -> Selffn minutes(minutes: i64) -> Selffn num_hours(&Self) -> i64fn num_minutes(&Self) -> i64fn zero() -> SelfImplementors
impl 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) -> i64impl TimeValLike for TimeVal
fn milliseconds(milliseconds: i64) -> TimeValfn 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) -> i64fn num_milliseconds(&Self) -> i64fn num_microseconds(&Self) -> i64fn num_nanoseconds(&Self) -> i64