Skip to main content

RuntimeAvailable

Trait RuntimeAvailable 

Source
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§

Source§

impl<T: ?Sized> RuntimeAvailable for T

Available on crate features tokio or async-std or smol only.