summaryrefslogtreecommitdiffstats
path: root/tokio-futures/src/sink/mod.rs
diff options
context:
space:
mode:
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 {}