pub enum DurationUnit {
NanoSecond,
MicroSecond,
MilliSecond,
Second,
Minute,
Hour,
Day,
Week,
}
Expand description
Time duration units used in MetricUnit::Duration
.
Defaults to millisecond
.
Variants§
NanoSecond
Nanosecond ("nanosecond"
), 10^-9 seconds.
MicroSecond
Microsecond ("microsecond"
), 10^-6 seconds.
MilliSecond
Millisecond ("millisecond"
), 10^-3 seconds.
Second
Full second ("second"
).
Minute
Minute ("minute"
), 60 seconds.
Hour
Hour ("hour"
), 3600 seconds.
Day
Day ("day"
), 86,400 seconds.
Week
Week ("week"
), 604,800 seconds.
Implementations§
Trait Implementations§
source§impl Clone for DurationUnit
impl Clone for DurationUnit
source§fn clone(&self) -> DurationUnit
fn clone(&self) -> DurationUnit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DurationUnit
impl Debug for DurationUnit
source§impl Default for DurationUnit
impl Default for DurationUnit
source§impl Display for DurationUnit
impl Display for DurationUnit
source§impl Hash for DurationUnit
impl Hash for DurationUnit
source§impl PartialEq for DurationUnit
impl PartialEq for DurationUnit
impl Copy for DurationUnit
impl Eq for DurationUnit
impl StructuralPartialEq for DurationUnit
Auto Trait Implementations§
impl Freeze for DurationUnit
impl RefUnwindSafe for DurationUnit
impl Send for DurationUnit
impl Sync for DurationUnit
impl Unpin for DurationUnit
impl UnwindSafe for DurationUnit
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
)