Skip to main content

Module dyn_time

Module dyn_time 

Source
Expand description

type-erased time provider

Re-exportsΒ§

use std::future::Future; πŸ”’
use std::mem; πŸ”’
use std::mem::MaybeUninit; πŸ”’
use std::pin::Pin; πŸ”’
use web_time_compat::Duration; πŸ”’
use web_time_compat::Instant; πŸ”’
use web_time_compat::SystemTime; πŸ”’
use dyn_clone::DynClone; πŸ”’
use educe::Educe; πŸ”’
use paste::paste; πŸ”’
use crate::CoarseInstant; πŸ”’
use crate::CoarseTimeProvider; πŸ”’
use crate::SleepProvider; πŸ”’
use crate::PreferredRuntime; πŸ”’

MacrosΒ§

dyn_impl_methods πŸ”’
Define ordinary methods in impl DynProvider
if_preferred_runtime πŸ”’
See the other implementation
if_preferred_runtime πŸ”’
if_preferred_runtime!{[ Y ] [ N ]} expands to Y (if there’s PreferredRuntime) or N
pub_impl_methods πŸ”’
Define ordinary methods in impl .. for DynTimeProvider
with_preferred_runtime πŸ”’
with_preferred_runtime!( R; EXPR ) expands to EXPR, or to match *R {}.

StructsΒ§

DynTimeProvider
Type-erased SleepProvider and CoarseTimeProvider

EnumsΒ§

Impl πŸ”’
Actual contents of a DynTimeProvider

TraitsΒ§

DynProvider πŸ”’
Object-safe version of SleepProvider and CoarseTimeProvider

FunctionsΒ§

downcast_value πŸ”’
Try to cast I (which is presumably a TAIT) to O (presumably a concrete type)

Type AliasesΒ§

DynSleepFuture πŸ”’
Convenience alias for a boxed sleep future