pub trait AsyncRuntime:
Spawn
+ Send
+ Sync { }Expand description
An async runtime whose blocking thread pool runs the NDI operations of an
AsyncReceiver, AsyncFinder and AsyncSourceWatch.
Tokio selects the Tokio runtime.
Smol selects the smol runtime.
The trait is sealed and has no items of its own; it only selects the runtime.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AsyncRuntime for Smol
Available on crate feature
smol only.impl AsyncRuntime for Tokio
Available on crate feature
tokio only.