Module runtime

Source
Available on crate feature std only.
Expand description

Abstractions to deal with different async runtimes.

Structs§

TokioHandletokio
A handle to the Tokio runtime
TokioRuntimeProvidertokio
The Tokio Runtime for async execution
TokioTimetokio
New type which is implemented using tokio::time::{Delay, Timeout}

Traits§

Executor
Generic executor.
QuicSocketBinder__quic
Create a UDP socket for QUIC usage. This trait is designed for customization.
RuntimeProvider
RuntimeProvider defines which async runtime that handles IO and timers.
Spawn
A type defines the Handle which can spawn future.
Time
Generic Time for Delay and Timeout.

Functions§

spawn_bgtokio
Spawn a background task, if it was present