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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)