Struct nix::sys::time::TimeSpec [−][src]
#[repr(C)]pub struct TimeSpec(_);
Methods
impl TimeSpec
[src]
impl TimeSpec
Trait Implementations
impl Clone for TimeSpec
[src]
impl Clone for TimeSpec
fn clone(&self) -> TimeSpec
[src]
fn clone(&self) -> TimeSpec
Returns 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 TimeSpec
impl AsRef<timespec> for TimeSpec
[src]
impl AsRef<timespec> for TimeSpec
impl Debug for TimeSpec
[src]
impl Debug for TimeSpec
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TimeSpec
[src]
impl PartialEq for TimeSpec
fn eq(&self, other: &TimeSpec) -> bool
[src]
fn eq(&self, other: &TimeSpec) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for TimeSpec
[src]
impl Eq for TimeSpec
impl Ord for TimeSpec
[src]
impl Ord for TimeSpec
fn cmp(&self, other: &TimeSpec) -> Ordering
[src]
fn cmp(&self, other: &TimeSpec) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for TimeSpec
[src]
impl PartialOrd for TimeSpec
fn 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) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This 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) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This 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 TimeSpec
fn seconds(seconds: i64) -> TimeSpec
[src]
fn seconds(seconds: i64) -> TimeSpec
fn milliseconds(milliseconds: i64) -> TimeSpec
[src]
fn milliseconds(milliseconds: i64) -> TimeSpec
fn microseconds(microseconds: i64) -> TimeSpec
[src]
fn microseconds(microseconds: i64) -> TimeSpec
Makes a new TimeSpec
with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeSpec
[src]
fn nanoseconds(nanoseconds: i64) -> TimeSpec
Makes a new TimeSpec
with given number of nanoseconds.
fn num_seconds(&self) -> i64
[src]
fn num_seconds(&self) -> i64
fn num_milliseconds(&self) -> i64
[src]
fn num_milliseconds(&self) -> i64
fn num_microseconds(&self) -> i64
[src]
fn num_microseconds(&self) -> i64
fn num_nanoseconds(&self) -> i64
[src]
fn num_nanoseconds(&self) -> i64
fn zero() -> Self
[src]
fn zero() -> Self
fn hours(hours: i64) -> Self
[src]
fn hours(hours: i64) -> Self
fn minutes(minutes: i64) -> Self
[src]
fn minutes(minutes: i64) -> Self
fn num_hours(&self) -> i64
[src]
fn num_hours(&self) -> i64
fn num_minutes(&self) -> i64
[src]
fn num_minutes(&self) -> i64
impl Neg for TimeSpec
[src]
impl Neg for TimeSpec
type Output = TimeSpec
The resulting type after applying the -
operator.
fn neg(self) -> TimeSpec
[src]
fn neg(self) -> TimeSpec
Performs the unary -
operation.
impl Add for TimeSpec
[src]
impl Add for TimeSpec
type Output = TimeSpec
The resulting type after applying the +
operator.
fn add(self, rhs: TimeSpec) -> TimeSpec
[src]
fn add(self, rhs: TimeSpec) -> TimeSpec
Performs the +
operation.
impl Sub for TimeSpec
[src]
impl Sub for TimeSpec
type Output = TimeSpec
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeSpec) -> TimeSpec
[src]
fn sub(self, rhs: TimeSpec) -> TimeSpec
Performs the -
operation.
impl Mul<i32> for TimeSpec
[src]
impl Mul<i32> for TimeSpec
type Output = TimeSpec
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> TimeSpec
[src]
fn mul(self, rhs: i32) -> TimeSpec
Performs the *
operation.
impl Div<i32> for TimeSpec
[src]
impl Div<i32> for TimeSpec
type Output = TimeSpec
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> TimeSpec
[src]
fn div(self, rhs: i32) -> TimeSpec
Performs the /
operation.
impl Display for TimeSpec
[src]
impl Display for TimeSpec