Module tokio

Module tokio 

Source
Available on crate feature tokio only.
Expand description

Integration with the Tokio async runtime.

This module provides implementations of the Executor and LocalExecutor traits for the Tokio runtime, along with task wrappers that provide panic safety.

Structs§

JoinHandle
An owned permission to join on a task (await its termination).
LocalSet
A set of tasks which are executed on the same thread.
Runtime
The Tokio runtime.
TokioExecutor
The default Tokio-based executor implementation.
TokioLocalTask
Task wrapper for Tokio’s local JoinHandle (non-Send futures).
TokioTask
Task wrapper for Tokio’s JoinHandle that implements the Task trait.