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

§

type Output = MonotonicInstant

The resulting type after applying the + operator.
source§

fn add(self, t: MonotonicInstant) -> MonotonicInstant

Performs the + operation. Read more
source§

impl DurationExt for MonotonicDuration

source§

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 more
source§

impl WakeupTime for MonotonicDuration

source§

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.