pub struct TimeVal {
pub tv_sec: time_t,
pub tv_usec: suseconds_t,
}
Fields
tv_sec: time_t
tv_usec: suseconds_t
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TimeVal
impl<'de> Deserialize<'de> for TimeVal
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for TimeVal
impl Ord for TimeVal
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<TimeVal> for TimeVal
impl PartialOrd<TimeVal> for TimeVal
sourcefn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl TryFrom<SystemTime> for TimeVal
impl TryFrom<SystemTime> for TimeVal
type Error = SystemTimeError
type Error = SystemTimeError
The type returned in the event of a conversion error.
sourcefn try_from(system_time: SystemTime) -> Result<Self, Self::Error>
fn try_from(system_time: SystemTime) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryInto<SystemTime> for TimeVal
impl TryInto<SystemTime> for TimeVal
impl Copy for TimeVal
impl Eq for TimeVal
impl StructuralEq for TimeVal
impl StructuralPartialEq for TimeVal
Auto Trait Implementations
impl RefUnwindSafe for TimeVal
impl Send for TimeVal
impl Sync for TimeVal
impl Unpin for TimeVal
impl UnwindSafe for TimeVal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more