pub enum Microseconds {}Expand description
A TimeResolution implementation that truncates time measurements to
microseconds. Internally, the number of microseconds is represented as
an i64, allowing a range of +/- ~292,471 years.
Trait Implementations§
Source§impl Debug for Microseconds
impl Debug for Microseconds
Source§impl TimeResolution for Microseconds
impl TimeResolution for Microseconds
Source§const FORMAT_SUFFIX: &'static str = "us"
const FORMAT_SUFFIX: &'static str = "us"
The label used when formatting times with this resolution.
Source§type Representation = i64
type Representation = i64
The in-memory and serialized representation for this resolution.
Source§fn repr_to_duration(
value: Self::Representation,
) -> Result<SignedDuration, TimeError>
fn repr_to_duration( value: Self::Representation, ) -> Result<SignedDuration, TimeError>
Converts a
Self::Representation to Duration.Source§fn duration_to_repr(
duration: SignedDuration,
) -> Result<Self::Representation, TimeError>
fn duration_to_repr( duration: SignedDuration, ) -> Result<Self::Representation, TimeError>
Converts a
Duration to Self::Representation.Auto Trait Implementations§
impl Freeze for Microseconds
impl RefUnwindSafe for Microseconds
impl Send for Microseconds
impl Sync for Microseconds
impl Unpin for Microseconds
impl UnwindSafe for Microseconds
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more