Module tokio::prelude
[−]
[src]
A "prelude" for users of the tokio
crate.
This prelude is similar to the standard library's prelude in that you'll almost always want to import its entire contents, but unlike the standard library's prelude you'll have to do so manually:
use tokio::prelude::*;
The prelude may grow over time as additional items see ubiquitous use.
Modules
future |
Futures |
stream |
Asynchronous streams |
task |
Tasks used to drive a future computation |
Enums
Async |
Return type of future, indicating whether a value is ready or not. |
AsyncSink |
The result of an asynchronous attempt to send a value to a sink. |
Traits
AsyncRead |
Read bytes asynchronously. |
AsyncWrite |
Writes bytes asynchronously. |
Future |
Trait for types which are a placeholder of a value that may become available at some later point in time. |
FutureExt |
An extension trait for |
IntoFuture |
Class of types which can be converted into a future. |
Read |
The |
Sink |
A |
Stream |
A stream of values, not all of which may have been produced yet. |
Write |
A trait for objects which are byte-oriented sinks. |
Type Definitions
Poll |
Return type of the |