diff options
author | Carl Lerche <me@carllerche.com> | 2020-09-24 17:26:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 17:26:03 -0700 |
commit | 4186b0aa38abbec7670d53882d5cdfd4b12add5c (patch) | |
tree | b067117fcb1a4c479cd274465bcac0431c2e59f7 /tokio/src/net/tcp/split.rs | |
parent | 760ae89401d9addb71ebf19674980577b5501edd (diff) |
io: remove poll_{read,write}_buf from traits (#2882)
These functions have object safety issues. It also has been decided to
avoid vectored operations on the I/O traits. A later PR will bring back
vectored operations on specific types that support them.
Refs: #2879, #2716
Diffstat (limited to 'tokio/src/net/tcp/split.rs')
-rw-r--r-- | tokio/src/net/tcp/split.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tokio/src/net/tcp/split.rs b/tokio/src/net/tcp/split.rs index 9d99d7bd..6e927f05 100644 --- a/tokio/src/net/tcp/split.rs +++ b/tokio/src/net/tcp/split.rs @@ -12,7 +12,6 @@ use crate::future::poll_fn; use crate::io::{AsyncRead, AsyncWrite, ReadBuf}; use crate::net::TcpStream; -use bytes::Buf; use std::io; use std::net::Shutdown; use std::pin::Pin; @@ -148,14 +147,6 @@ impl AsyncWrite for WriteHalf<'_> { self.0.poll_write_priv(cx, buf) } - fn poll_write_buf<B: Buf>( - self: Pin<&mut Self>, - cx: &mut Context<'_>, - buf: &mut B, - ) -> Poll<io::Result<usize>> { - self.0.poll_write_buf_priv(cx, buf) - } - #[inline] fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<io::Result<()>> { // tcp flush is a no-op |