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: u32Implementations§
Trait Implementations§
Source§impl Ord for Millis
impl Ord for Millis
1.21.0 (const: unstable) · 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 PartialOrd for Millis
impl PartialOrd for Millis
impl 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 UnsafeUnpin 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