pub struct TimeSpan(/* private fields */);
Expand description
Signed duration in us, e.g. RTT
Implementations§
Source§impl TimeSpan
impl TimeSpan
pub const MAX: TimeSpan
pub const MIN: TimeSpan
pub const ZERO: TimeSpan
pub fn from_interval(begin: Instant, end: Instant) -> Self
pub const fn from_micros(us: i32) -> Self
pub const fn from_millis(us: i32) -> Self
pub const fn as_micros(self) -> i32
pub const fn abs(self) -> Self
pub fn as_secs_f64(self) -> f64
Trait Implementations§
Source§impl Ord for TimeSpan
impl Ord for TimeSpan
Source§impl PartialOrd for TimeSpan
impl PartialOrd for TimeSpan
impl Copy for TimeSpan
impl Eq for TimeSpan
impl StructuralPartialEq for TimeSpan
Auto Trait Implementations§
impl Freeze for TimeSpan
impl RefUnwindSafe for TimeSpan
impl Send for TimeSpan
impl Sync for TimeSpan
impl Unpin for TimeSpan
impl UnwindSafe for TimeSpan
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.