summaryrefslogtreecommitdiffstats
path: root/tokio-futures/src/sink/mod.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-06-24 12:34:30 -0700
committerGitHub <noreply@github.com>2019-06-24 12:34:30 -0700
commit06c473e62842d257ed275497ce906710ea3f8e19 (patch)
tree4ca6d337a892aa23266a761b35dc61e988e57954 /tokio-futures/src/sink/mod.rs
parentaa99950b9c983b842bd2107bb771c277d09d495d (diff)
Update Tokio to use `std::future`. (#1120)
A first pass at updating Tokio to use `std::future`. Implementations of `Future` from the futures crate are updated to implement `Future` from std. Implementations of `Stream` are moved to a feature flag. This commits disables a number of crates that have not yet been updated.
Diffstat (limited to 'tokio-futures/src/sink/mod.rs')
-rw-r--r--tokio-futures/src/sink/mod.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/tokio-futures/src/sink/mod.rs b/tokio-futures/src/sink/mod.rs
deleted file mode 100644
index 90382951..00000000
--- a/tokio-futures/src/sink/mod.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-//! Use sinks with `async` / `await`.
-
-mod send;
-
-pub use self::send::Send;
-
-use futures::Sink;
-
-/// An extension trait which adds utility methods to `Sink` types.
-pub trait SinkExt: Sink {
- /// Send an item into the sink.
- ///
- /// Note that, **because of the flushing requirement, it is usually better
- /// to batch together items to send via `send_all`, rather than flushing
- /// between each item.**
- fn send_async(&mut self, item: Self::SinkItem) -> Send<'_, Self>
- where
- Self: Sized + Unpin,
- {
- Send::new(self, item)
- }
-}
-
-impl<T: Sink> SinkExt for T {}