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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: ?Sized> RuntimeAvailable for T

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