Enum sentry_core::metrics::DurationUnit
source · 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.
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 From<DurationUnit> for MetricUnit
impl From<DurationUnit> for MetricUnit
source§fn from(unit: DurationUnit) -> Self
fn from(unit: DurationUnit) -> Self
Converts to this type from the input type.
source§impl Hash for DurationUnit
impl Hash for DurationUnit
source§impl PartialEq for DurationUnit
impl PartialEq for DurationUnit
source§fn eq(&self, other: &DurationUnit) -> bool
fn eq(&self, other: &DurationUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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