Type Alias fuchsia_async::MonotonicDuration
source · pub type MonotonicDuration = Duration<MonotonicTimeline>;
Expand description
A duration on the monotonic timeline.
Aliased Type§
struct MonotonicDuration(/* private fields */);
Trait Implementations§
source§impl Add<MonotonicInstant> for MonotonicDuration
impl Add<MonotonicInstant> for MonotonicDuration
§type Output = MonotonicInstant
type Output = MonotonicInstant
The resulting type after applying the
+
operator.source§fn add(self, t: MonotonicInstant) -> MonotonicInstant
fn add(self, t: MonotonicInstant) -> MonotonicInstant
Performs the
+
operation. Read moresource§impl DurationExt for MonotonicDuration
impl DurationExt for MonotonicDuration
source§fn after_now(self) -> MonotonicInstant
fn after_now(self) -> MonotonicInstant
Return a
MonotonicInstant
which is a MonotonicDuration
after the current time.
duration.after_now()
is equivalent to MonotonicInstant::after(duration)
. Read moresource§impl WakeupTime for MonotonicDuration
impl WakeupTime for MonotonicDuration
source§fn into_time(self) -> MonotonicInstant
fn into_time(self) -> MonotonicInstant
Convert this time into a fuchsia_async::MonotonicInstant.
This is allowed to be inaccurate, but the inaccuracy must make the wakeup time later,
never earlier.