Struct nix::sys::time::TimeSpec [−][src]
#[repr(C)]pub struct TimeSpec(_);
Methods
impl TimeSpec[src]
impl TimeSpecTrait Implementations
impl Clone for TimeSpec[src]
impl Clone for TimeSpecfn clone(&self) -> TimeSpec[src]
fn clone(&self) -> TimeSpecReturns 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 TimeSpec[src]
impl Copy for TimeSpecimpl AsRef<timespec> for TimeSpec[src]
impl AsRef<timespec> for TimeSpecimpl Debug for TimeSpec[src]
impl Debug for TimeSpecfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for TimeSpec[src]
impl PartialEq for TimeSpecfn eq(&self, other: &TimeSpec) -> bool[src]
fn eq(&self, other: &TimeSpec) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for TimeSpec[src]
impl Eq for TimeSpecimpl Ord for TimeSpec[src]
impl Ord for TimeSpecfn cmp(&self, other: &TimeSpec) -> Ordering[src]
fn cmp(&self, other: &TimeSpec) -> 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 PartialOrd for TimeSpec[src]
impl PartialOrd for TimeSpecfn partial_cmp(&self, other: &TimeSpec) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &TimeSpec) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl TimeValLike for TimeSpec[src]
impl TimeValLike for TimeSpecfn seconds(seconds: i64) -> TimeSpec[src]
fn seconds(seconds: i64) -> TimeSpecfn milliseconds(milliseconds: i64) -> TimeSpec[src]
fn milliseconds(milliseconds: i64) -> TimeSpecfn microseconds(microseconds: i64) -> TimeSpec[src]
fn microseconds(microseconds: i64) -> TimeSpecMakes a new TimeSpec with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeSpec[src]
fn nanoseconds(nanoseconds: i64) -> TimeSpecMakes a new TimeSpec with given number of nanoseconds.
fn num_seconds(&self) -> i64[src]
fn num_seconds(&self) -> i64fn num_milliseconds(&self) -> i64[src]
fn num_milliseconds(&self) -> i64fn num_microseconds(&self) -> i64[src]
fn num_microseconds(&self) -> i64fn num_nanoseconds(&self) -> i64[src]
fn num_nanoseconds(&self) -> i64fn zero() -> Self[src]
fn zero() -> Selffn hours(hours: i64) -> Self[src]
fn hours(hours: i64) -> Selffn minutes(minutes: i64) -> Self[src]
fn minutes(minutes: i64) -> Selffn num_hours(&self) -> i64[src]
fn num_hours(&self) -> i64fn num_minutes(&self) -> i64[src]
fn num_minutes(&self) -> i64impl Neg for TimeSpec[src]
impl Neg for TimeSpectype Output = TimeSpec
The resulting type after applying the - operator.
fn neg(self) -> TimeSpec[src]
fn neg(self) -> TimeSpecPerforms the unary - operation.
impl Add for TimeSpec[src]
impl Add for TimeSpectype Output = TimeSpec
The resulting type after applying the + operator.
fn add(self, rhs: TimeSpec) -> TimeSpec[src]
fn add(self, rhs: TimeSpec) -> TimeSpecPerforms the + operation.
impl Sub for TimeSpec[src]
impl Sub for TimeSpectype Output = TimeSpec
The resulting type after applying the - operator.
fn sub(self, rhs: TimeSpec) -> TimeSpec[src]
fn sub(self, rhs: TimeSpec) -> TimeSpecPerforms the - operation.
impl Mul<i32> for TimeSpec[src]
impl Mul<i32> for TimeSpectype Output = TimeSpec
The resulting type after applying the * operator.
fn mul(self, rhs: i32) -> TimeSpec[src]
fn mul(self, rhs: i32) -> TimeSpecPerforms the * operation.
impl Div<i32> for TimeSpec[src]
impl Div<i32> for TimeSpectype Output = TimeSpec
The resulting type after applying the / operator.
fn div(self, rhs: i32) -> TimeSpec[src]
fn div(self, rhs: i32) -> TimeSpecPerforms the / operation.
impl Display for TimeSpec[src]
impl Display for TimeSpec