about summary refs log tree commit diff
path: root/library/std/src/os/unix/net
diff options
context:
space:
mode:
authorBenoît du Garreau <bdgdlm@outlook.com>2024-03-26 10:11:29 +0100
committerBenoît du Garreau <bdgdlm@outlook.com>2024-03-26 10:11:29 +0100
commitbff13e98ad61b060ddb7c6c9afc9d1738af95804 (patch)
treeded0fed0f51e5ba661be6728bc662ab6f11948c7 /library/std/src/os/unix/net
parent73476d49904751f8d90ce904e16dfbc278083d2c (diff)
downloadrust-bff13e98ad61b060ddb7c6c9afc9d1738af95804.tar.gz
rust-bff13e98ad61b060ddb7c6c9afc9d1738af95804.zip
`UnixStream`: override `read_buf`
Diffstat (limited to 'library/std/src/os/unix/net')
-rw-r--r--library/std/src/os/unix/net/stream.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/std/src/os/unix/net/stream.rs b/library/std/src/os/unix/net/stream.rs
index d67493aaf4d..9b01d232611 100644
--- a/library/std/src/os/unix/net/stream.rs
+++ b/library/std/src/os/unix/net/stream.rs
@@ -580,6 +580,10 @@ impl io::Read for UnixStream {
         io::Read::read(&mut &*self, buf)
     }
 
+    fn read_buf(&mut self, buf: io::BorrowedCursor<'_>) -> io::Result<()> {
+        io::Read::read_buf(&mut &*self, buf)
+    }
+
     fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
         io::Read::read_vectored(&mut &*self, bufs)
     }
@@ -596,6 +600,10 @@ impl<'a> io::Read for &'a UnixStream {
         self.0.read(buf)
     }
 
+    fn read_buf(&mut self, buf: io::BorrowedCursor<'_>) -> io::Result<()> {
+        self.0.read_buf(buf)
+    }
+
     fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
         self.0.read_vectored(bufs)
     }