#[repr(C)]pub struct SystemTimeDiff {
pub secs: u64,
pub nanos: u32,
}Fields§
§secs: u64§nanos: u32Implementations§
Source§impl SystemTimeDiff
impl SystemTimeDiff
pub const fn from_secs(secs: u64) -> Self
pub const fn from_millis(millis: u64) -> Self
pub const fn from_nanos(nanos: u64) -> Self
pub const fn checked_add(self, rhs: Self) -> Option<Self>
pub fn millis(&self) -> u64
pub fn get(&self) -> StdDuration
Trait Implementations§
Source§impl Clone for SystemTimeDiff
impl Clone for SystemTimeDiff
Source§fn clone(&self) -> SystemTimeDiff
fn clone(&self) -> SystemTimeDiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemTimeDiff
impl Debug for SystemTimeDiff
Source§impl From<Duration> for SystemTimeDiff
Available on crate feature std only.
impl From<Duration> for SystemTimeDiff
Available on crate feature
std only.Source§fn from(d: StdDuration) -> SystemTimeDiff
fn from(d: StdDuration) -> SystemTimeDiff
Converts to this type from the input type.
Source§impl From<SystemTimeDiff> for Duration
Available on crate feature std only.
impl From<SystemTimeDiff> for Duration
Available on crate feature
std only.Source§fn from(d: SystemTimeDiff) -> StdDuration
fn from(d: SystemTimeDiff) -> StdDuration
Converts to this type from the input type.
Source§impl Hash for SystemTimeDiff
impl Hash for SystemTimeDiff
Source§impl Ord for SystemTimeDiff
impl Ord for SystemTimeDiff
Source§fn cmp(&self, other: &SystemTimeDiff) -> Ordering
fn cmp(&self, other: &SystemTimeDiff) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SystemTimeDiff
impl PartialEq for SystemTimeDiff
Source§impl PartialOrd for SystemTimeDiff
impl PartialOrd for SystemTimeDiff
impl Copy for SystemTimeDiff
impl Eq for SystemTimeDiff
impl StructuralPartialEq for SystemTimeDiff
Auto Trait Implementations§
impl Freeze for SystemTimeDiff
impl RefUnwindSafe for SystemTimeDiff
impl Send for SystemTimeDiff
impl Sync for SystemTimeDiff
impl Unpin for SystemTimeDiff
impl UnwindSafe for SystemTimeDiff
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more