pub trait TimerQueueBasedInstant: Ord + Copy {
type Ticks;
// Required methods
fn from_ticks(ticks: Self::Ticks) -> Self;
fn ticks(self) -> Self::Ticks;
}
Expand description
An instant that can be used in TimerQueueBasedMonotonic
.
Required Associated Types§
Required Methods§
Sourcefn from_ticks(ticks: Self::Ticks) -> Self
fn from_ticks(ticks: Self::Ticks) -> Self
Convert from ticks to the instant
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.