lib.rs
SHA-256bd097d35f814f889e9ec29b2ce75c9da57841f06feffcc56a40df5758c3848b9
Malecule∅
Evidence
1//! Zero-cost Futures in Rust
2//!
3//! This library is an implementation of futures in Rust which aims to provide
4//! a robust implementati …
4:46… hronous computations, ergonomic
5//! composition and usage, and zero-cost abstractions over what would otherwise
6//! be written by hand.
7//!
8//! Futures are a concept for an object which is a proxy for another value that
9//! may not be ready yet. For example issuing an HTTP request may return a
10//! future for the HTTP response, as it probably hasn't arrived yet. With an
11//! object representing a value that will eventually be available, futures allow
12//! for pow …
57:49… can even compose them together!
58//! // Here we have a function which takes two futures as input, and returns a
59//! // future that will calculate th …
170:2… )*)
171}
172
173#[macro_use]
174mod poll;
175pub use poll::{Poll, Async, AsyncSink, StartSend};
176
177pub mod future;
178pub use future::{Future, IntoFuture};
179
180pub mod stream;
181pub use stream::Stream;
182
183pub mod sink;
184pub use sink::Sink;
185
186#[deprecated(since = "0.1.4", note = "import through the future module instead")]
187#[cfg(featu …
187:21… h-deprecated")]
188#[doc(hidden)]
189pub use future::{done, empty, failed, finished, lazy};
190
191#[doc(hidden)]
192#[cfg(feature = "with-deprecated")]
193#[deprecated(since = "0.1.4", note = "import thro …