Trait nix::sys::time::TimeValLike [−][src]
pub trait TimeValLike: Sized {}Show methods
fn seconds(seconds: i64) -> Self; fn milliseconds(milliseconds: i64) -> Self; fn microseconds(microseconds: i64) -> Self; fn nanoseconds(nanoseconds: i64) -> Self; fn num_seconds(&self) -> i64; fn num_milliseconds(&self) -> i64; fn num_microseconds(&self) -> i64; fn num_nanoseconds(&self) -> i64; fn zero() -> Self { ... } fn hours(hours: i64) -> Self { ... } fn minutes(minutes: i64) -> Self { ... } fn num_hours(&self) -> i64 { ... } fn num_minutes(&self) -> i64 { ... }
Required methods
fn seconds(seconds: i64) -> Self
[src]
fn milliseconds(milliseconds: i64) -> Self
[src]
fn microseconds(microseconds: i64) -> Self
[src]
fn nanoseconds(nanoseconds: i64) -> Self
[src]
fn num_seconds(&self) -> i64
[src]
fn num_milliseconds(&self) -> i64
[src]
fn num_microseconds(&self) -> i64
[src]
fn num_nanoseconds(&self) -> i64
[src]
Provided methods
fn zero() -> Self
[src]
fn hours(hours: i64) -> Self
[src]
fn minutes(minutes: i64) -> Self
[src]
fn num_hours(&self) -> i64
[src]
fn num_minutes(&self) -> i64
[src]
Implementors
impl TimeValLike for TimeSpec
[src]
fn seconds(seconds: i64) -> TimeSpec
[src]
fn milliseconds(milliseconds: i64) -> TimeSpec
[src]
fn microseconds(microseconds: i64) -> TimeSpec
[src]
Makes a new TimeSpec
with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeSpec
[src]
Makes a new TimeSpec
with given number of nanoseconds.
fn num_seconds(&self) -> i64
[src]
fn num_milliseconds(&self) -> i64
[src]
fn num_microseconds(&self) -> i64
[src]
fn num_nanoseconds(&self) -> i64
[src]
impl TimeValLike for TimeVal
[src]
fn seconds(seconds: i64) -> TimeVal
[src]
fn milliseconds(milliseconds: i64) -> TimeVal
[src]
fn microseconds(microseconds: i64) -> TimeVal
[src]
Makes a new TimeVal
with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeVal
[src]
Makes a new TimeVal
with given number of nanoseconds. Some precision
will be lost