Trait dhcp_client_core::deps::Clock
source · pub trait Clock {
type Instant: Instant;
// Required methods
async fn wait_until(&self, time: Self::Instant);
fn now(&self) -> Self::Instant;
}
Expand description
Provides access to system-time-related operations.
Required Associated Types§
Required Methods§
sourceasync fn wait_until(&self, time: Self::Instant)
async fn wait_until(&self, time: Self::Instant)
Completes once the monotonic system time is at or after the given time.
Object Safety§
This trait is not object safe.