Trait nix::sys::time::TimeValLike

source ·
pub trait TimeValLike: Sized {
Show 13 methods // Required 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; // Provided methods 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§

source

fn seconds(seconds: i64) -> Self

source

fn milliseconds(milliseconds: i64) -> Self

source

fn microseconds(microseconds: i64) -> Self

source

fn nanoseconds(nanoseconds: i64) -> Self

source

fn num_seconds(&self) -> i64

source

fn num_milliseconds(&self) -> i64

source

fn num_microseconds(&self) -> i64

source

fn num_nanoseconds(&self) -> i64

Provided Methods§

source

fn zero() -> Self

source

fn hours(hours: i64) -> Self

source

fn minutes(minutes: i64) -> Self

source

fn num_hours(&self) -> i64

source

fn num_minutes(&self) -> i64

Object Safety§

This trait is not object safe.

Implementors§