pub trait Time: Copy {
type Proof<'d>;
const FIXED: bool;
// Required methods
fn proof<'d>(self, driver: Reference<'d>) -> Self::Proof<'d>;
fn park(self) -> Instant;
fn limit(self, timeout: Option<Duration>) -> Option<Duration>;
// Provided methods
fn start(self) -> Sample { ... }
fn tick(self) -> Result<Sample, Error> { ... }
fn quiesce(self) -> Result<Sample, Error> { ... }
fn timeout(self, deadline: Deadline<'_>) -> Duration { ... }
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn proof<'d>(self, driver: Reference<'d>) -> Self::Proof<'d>
fn park(self) -> Instant
fn limit(self, timeout: Option<Duration>) -> Option<Duration>
Provided Methods§
fn start(self) -> Sample
fn tick(self) -> Result<Sample, Error>
fn quiesce(self) -> Result<Sample, Error>
fn timeout(self, deadline: Deadline<'_>) -> Duration
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".