Skip to main content

AsyncRuntime

Trait AsyncRuntime 

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

Source§

impl AsyncRuntime for Smol

Available on crate feature smol only.
Source§

impl AsyncRuntime for Tokio

Available on crate feature tokio only.