Struct governor::nanos::Nanos [−][src]
pub struct Nanos(_);
Expand description
A number of nanoseconds from a reference point.
Nanos can not represent durations >584 years, but hopefully that should not be a problem in real-world applications.
Implementations
Nanos as used by Jitter and other std-only features.
Trait Implementations
type Output = SystemTime
type Output = SystemTime
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = QuantaInstant
type Output = QuantaInstant
The resulting type after applying the +
operator.
Performs the +
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Determines the time that separates two measurements of a
clock. Implementations of this must perform a saturating
subtraction - if the earlier
timestamp should be later,
duration_since
must return the zero duration. Read more
Returns a reference point that lies at most duration
in the
past from the current reference. If an underflow should occur,
returns the current reference. Read more
type Sampler = UniformJitter
type Sampler = UniformJitter
The UniformSampler
implementation supporting type X
.
Auto Trait Implementations
impl RefUnwindSafe for Nanos
impl UnwindSafe for Nanos
Blanket Implementations
Mutably borrows from an owned value. Read more
Immutably borrows from an owned value. See Borrow::borrow
Read more