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