pub enum Milliseconds {}
Expand description
A TimeResolution
implementation that truncates time measurements to
milliseconds. Internally, the number of milliseconds is represented as
an i64
, allowing a range of +/- ~292.5 million years.
Trait Implementations§
source§impl Debug for Milliseconds
impl Debug for Milliseconds
source§impl TimeResolution for Milliseconds
impl TimeResolution for Milliseconds
§type Representation = i64
type Representation = i64
The in-memory and serialized representation for this resolution.
source§const FORMAT_SUFFIX: &'static str = "ms"
const FORMAT_SUFFIX: &'static str = "ms"
The label used when formatting times with this resolution.
source§fn repr_to_duration(
value: <Milliseconds as TimeResolution>::Representation
) -> Result<SignedDuration, TimeError>
fn repr_to_duration( value: <Milliseconds as TimeResolution>::Representation ) -> Result<SignedDuration, TimeError>
Converts a
Self::Representation
to Duration
.source§fn duration_to_repr(
duration: SignedDuration
) -> Result<<Milliseconds as TimeResolution>::Representation, TimeError>
fn duration_to_repr( duration: SignedDuration ) -> Result<<Milliseconds as TimeResolution>::Representation, TimeError>
Converts a
Duration
to Self::Representation
.Auto Trait Implementations§
impl RefUnwindSafe for Milliseconds
impl Send for Milliseconds
impl Sync for Milliseconds
impl Unpin for Milliseconds
impl UnwindSafe for Milliseconds
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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