[−][src]Struct nix::sys::time::TimeVal
Fields
tv_sec: time_ttv_usec: suseconds_tMethods
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 cmp(&self, other: &TimeVal) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for TimeVal[src]
fn clone(&self) -> 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]
fn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>[src]
fn lt(&self, other: &TimeVal) -> bool[src]
fn le(&self, other: &TimeVal) -> bool[src]
fn gt(&self, other: &TimeVal) -> bool[src]
fn ge(&self, other: &TimeVal) -> bool[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.
fn add(self, rhs: TimeVal) -> TimeVal[src]
impl Sub<TimeVal> for TimeVal[src]
type Output = TimeVal
The resulting type after applying the - operator.
fn sub(self, rhs: TimeVal) -> TimeVal[src]
impl Mul<i32> for TimeVal[src]
type Output = TimeVal
The resulting type after applying the * operator.
fn mul(self, rhs: i32) -> TimeVal[src]
impl Div<i32> for TimeVal[src]
type Output = TimeVal
The resulting type after applying the / operator.
fn div(self, rhs: i32) -> TimeVal[src]
impl Neg for TimeVal[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>, [src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,