pub trait DurationExt {
// Required method
fn after_now(self) -> MonotonicInstant;
}Expand description
An extension trait to provide after_now on zx::MonotonicDuration.
Required Methods§
Sourcefn 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).
This method requires that an executor has been set up.