fuchsia_async

Trait 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§