Struct nix::sys::time::TimeVal [−][src]
#[repr(C)]pub struct TimeVal { pub tv_sec: time_t, pub tv_usec: suseconds_t, }
Fields
tv_sec: time_t
tv_usec: suseconds_t
Methods
impl TimeVal[src]
impl TimeValpub fn zero() -> TimeVal[src]
pub fn zero() -> TimeValpub fn hours(hours: i64) -> TimeVal[src]
pub fn hours(hours: i64) -> TimeValpub fn minutes(minutes: i64) -> TimeVal[src]
pub fn minutes(minutes: i64) -> TimeValpub fn seconds(seconds: i64) -> TimeVal[src]
pub fn seconds(seconds: i64) -> TimeValpub fn milliseconds(milliseconds: i64) -> TimeVal[src]
pub fn milliseconds(milliseconds: i64) -> TimeValpub fn microseconds(microseconds: i64) -> TimeVal[src]
pub fn microseconds(microseconds: i64) -> TimeValMakes a new TimeVal with given number of microseconds.
pub fn num_hours(&self) -> i64[src]
pub fn num_hours(&self) -> i64pub fn num_minutes(&self) -> i64[src]
pub fn num_minutes(&self) -> i64pub fn num_seconds(&self) -> i64[src]
pub fn num_seconds(&self) -> i64pub fn num_milliseconds(&self) -> i64[src]
pub fn num_milliseconds(&self) -> i64pub fn num_microseconds(&self) -> i64[src]
pub fn num_microseconds(&self) -> i64Trait Implementations
impl Clone for TimeVal[src]
impl Clone for TimeValfn clone(&self) -> TimeVal[src]
fn clone(&self) -> TimeValReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for TimeVal[src]
impl Copy for TimeValimpl PartialEq for TimeVal[src]
impl PartialEq for TimeValfn eq(&self, other: &TimeVal) -> bool[src]
fn eq(&self, other: &TimeVal) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TimeVal) -> bool[src]
fn ne(&self, other: &TimeVal) -> boolThis method tests for !=.
impl Eq for TimeVal[src]
impl Eq for TimeValimpl PartialOrd for TimeVal[src]
impl PartialOrd for TimeValfn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &TimeVal) -> bool[src]
fn lt(&self, other: &TimeVal) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &TimeVal) -> bool[src]
fn le(&self, other: &TimeVal) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &TimeVal) -> bool[src]
fn gt(&self, other: &TimeVal) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &TimeVal) -> bool[src]
fn ge(&self, other: &TimeVal) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for TimeVal[src]
impl Ord for TimeValfn cmp(&self, other: &TimeVal) -> Ordering[src]
fn cmp(&self, other: &TimeVal) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Debug for TimeVal[src]
impl Debug for TimeValfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Neg for TimeVal[src]
impl Neg for TimeValtype Output = TimeVal
The resulting type after applying the - operator.
fn neg(self) -> TimeVal[src]
fn neg(self) -> TimeValPerforms the unary - operation.
impl Add for TimeVal[src]
impl Add for TimeValtype Output = TimeVal
The resulting type after applying the + operator.
fn add(self, rhs: TimeVal) -> TimeVal[src]
fn add(self, rhs: TimeVal) -> TimeValPerforms the + operation.
impl Sub for TimeVal[src]
impl Sub for TimeValtype Output = TimeVal
The resulting type after applying the - operator.
fn sub(self, rhs: TimeVal) -> TimeVal[src]
fn sub(self, rhs: TimeVal) -> TimeValPerforms the - operation.
impl Mul<i32> for TimeVal[src]
impl Mul<i32> for TimeValtype Output = TimeVal
The resulting type after applying the * operator.
fn mul(self, rhs: i32) -> TimeVal[src]
fn mul(self, rhs: i32) -> TimeValPerforms the * operation.
impl Div<i32> for TimeVal[src]
impl Div<i32> for TimeValtype Output = TimeVal
The resulting type after applying the / operator.
fn div(self, rhs: i32) -> TimeVal[src]
fn div(self, rhs: i32) -> TimeValPerforms the / operation.
impl Display for TimeVal[src]
impl Display for TimeVal