Module dyn_time

Source
Expand description

type-erased time provider

Macros§

dyn_impl_methods 🔒
Define ordinary methods in impl DynProvider
if_preferred_runtime 🔒
See the other implementation
if_preferred_runtime 🔒 (native-tls or rustls) and (async-std or tokio)
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