pub enum TimeUnit {
Nanoseconds,
Microseconds,
Milliseconds,
Seconds,
Minutes,
Hours,
Days,
Weeks,
Months,
Years,
}
Expand description
The unit of time
Variants§
Nanoseconds
Nanosecond = 1 Nanosecond
Microseconds
1 Microsecond = 1000 Nanoseconds
Milliseconds
1 Milliseconds = 1e+6 Nanoseconds
Seconds
1 Second = 1e+9 Nanoseconds
Minutes
1 Minute = 6e+10 Nanoseconds
Hours
1 Hour = 3.6e+12 Nanoseconds
Days
1 Day = 8.64e+13 Nanoseconds
Weeks
1 Week = 6.048e+14 Nanoseconds
Months
1 Month = 2.628e+15 Nanoseconds
Years
1 Year = 3.154e+16 Nanosecondss
Implementations§
Trait Implementations§
impl StructuralPartialEq for TimeUnit
Auto Trait Implementations§
impl Freeze for TimeUnit
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnwindSafe for TimeUnit
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