[][src]Struct nix::sys::time::TimeVal

#[repr(C)]
pub struct TimeVal { pub tv_sec: time_t, pub tv_usec: suseconds_t, }

Fields

tv_sec: time_ttv_usec: suseconds_t

Methods

impl TimeVal[src]

pub fn zero() -> TimeVal[src]

pub fn hours(hours: i64) -> TimeVal[src]

pub fn minutes(minutes: i64) -> TimeVal[src]

pub fn seconds(seconds: i64) -> TimeVal[src]

pub fn milliseconds(milliseconds: i64) -> TimeVal[src]

pub fn microseconds(microseconds: i64) -> TimeVal[src]

Makes a new TimeVal with given number of microseconds.

pub fn num_hours(&self) -> i64[src]

pub fn num_minutes(&self) -> i64[src]

pub fn num_seconds(&self) -> i64[src]

pub fn num_milliseconds(&self) -> i64[src]

pub fn num_microseconds(&self) -> i64[src]

Trait Implementations

impl PartialEq<TimeVal> for TimeVal[src]

impl Ord for TimeVal[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for TimeVal[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for TimeVal[src]

impl Copy for TimeVal[src]

impl PartialOrd<TimeVal> for TimeVal[src]

impl Debug for TimeVal[src]

impl Display for TimeVal[src]

impl Add<TimeVal> for TimeVal[src]

type Output = TimeVal

The resulting type after applying the + operator.

impl Sub<TimeVal> for TimeVal[src]

type Output = TimeVal

The resulting type after applying the - operator.

impl Mul<i32> for TimeVal[src]

type Output = TimeVal

The resulting type after applying the * operator.

impl Div<i32> for TimeVal[src]

type Output = TimeVal

The resulting type after applying the / operator.

impl Neg for TimeVal[src]

type Output = TimeVal

The resulting type after applying the - operator.

Auto Trait Implementations

impl Send for TimeVal

impl Sync for TimeVal

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]