Trait fuchsia_async::DurationExt

source ·
pub trait DurationExt {
    // Required method
    fn after_now(self) -> MonotonicInstant;
}
Expand description

An extension trait to provide after_now on zx::MonotonicDuration.

Required Methods§

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).

This method requires that an executor has been set up.

Implementations on Foreign Types§

source§

impl DurationExt for Duration

Implementors§