nix::sys::time

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§