Module runtime
Expand description
Abstractions to deal with different async runtimes.
Structs§
- Tokio
Handle - A handle to the Tokio runtime
- Tokio
Runtime Provider - The Tokio Runtime for async execution
- Tokio
Time - New type which is implemented using tokio::time::{Delay, Timeout}
Traits§
- Executor
- Generic executor.
- Quic
Socket Binder - Noop trait for when the
quinn
dependency is not available. - Runtime
Provider - 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_
bg - Spawn a background task, if it was present