pub struct Millis(pub u32);
Expand description
A Duration type to represent a span of time.
This type is designed for timeouts. Milliseconds resolution is too small to keep generic time.
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
source§impl Ord for Millis
impl Ord for Millis
source§impl PartialEq for Millis
impl PartialEq for Millis
source§impl PartialOrd for Millis
impl PartialOrd for Millis
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for Millis
impl Eq for Millis
impl StructuralPartialEq for Millis
Auto Trait Implementations§
impl Freeze for Millis
impl RefUnwindSafe for Millis
impl Send for Millis
impl Sync for Millis
impl Unpin for Millis
impl UnwindSafe for Millis
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