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 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
SleepProviderandCoarseTimeProvider
EnumsΒ§
- Impl π
- Actual contents of a
DynTimeProvider
TraitsΒ§
- DynProvider π
- Object-safe version of
SleepProviderandCoarseTimeProvider
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