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
orrustls
) and (async-std
ortokio
) if_preferred_runtime!{[ Y ] [ N ]}
expands toY
(if there’sPreferredRuntime
) orN
- pub_
impl_ 🔒methods - Define ordinary methods in
impl .. for DynTimeProvider
- with_
preferred_ 🔒runtime with_preferred_runtime!( R; EXPR )
expands toEXPR
, or tomatch *R {}
.
Structs§
- DynTime
Provider - Type-erased
SleepProvider
andCoarseTimeProvider
Enums§
- Impl 🔒
- Actual contents of a
DynTimeProvider
Traits§
- DynProvider 🔒
- Object-safe version of
SleepProvider
andCoarseTimeProvider
Functions§
- downcast_
value 🔒 - Try to cast
I
(which is presumably a TAIT) toO
(presumably a concrete type)
Type Aliases§
- DynSleep
Future 🔒 - Convenience alias for a boxed sleep future