pub trait RuntimeAvailable { }Expand description
A marker trait, implemented for every type when (and only when) a runtime feature is enabled.
It carries no methods. Its only job is to be a deferred bound on
run_within and Subject::completes_within, so that “no runtime
feature” becomes an error at the user’s call site rather than at the
library’s definition.
Implementors§
impl<T> RuntimeAvailable for Twhere
T: ?Sized,
Available on crate features
tokio or async-std or smol only.