pub trait Instant: Add<Duration, Output = Self> + AddAssign<Duration> + Clone + Copy + Debug + Eq + Ord + PartialEq + PartialOrd + RefUnwindSafe + OptionalSend + Sub<Duration, Output = Self> + Sub<Self, Output = Duration> + SubAssign<Duration> + OptionalSync + Unpin + UnwindSafe + 'static {
// Required method
fn now() -> Self;
// Provided method
fn elapsed(&self) -> Duration { ... }
}
Expand description
A measurement of a monotonically non-decreasing clock.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.