UnixStream
: override read_buf
· rust-lang/rust@bff13e9 (original) (raw)
File tree
1 file changed
lines changed
- library/std/src/os/unix/net
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -580,6 +580,10 @@ impl io::Read for UnixStream { | ||
580 | 580 | io::Read::read(&mut &*self, buf) |
581 | 581 | } |
582 | 582 | |
583 | +fn read_buf(&mut self, buf: io::BorrowedCursor<'_>) -> io::Result<()> { | |
584 | + io::Read::read_buf(&mut &*self, buf) | |
585 | +} | |
586 | + | |
583 | 587 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { |
584 | 588 | io::Read::read_vectored(&mut &*self, bufs) |
585 | 589 | } |
@@ -596,6 +600,10 @@ impl<'a> io::Read for &'a UnixStream { | ||
596 | 600 | self.0.read(buf) |
597 | 601 | } |
598 | 602 | |
603 | +fn read_buf(&mut self, buf: io::BorrowedCursor<'_>) -> io::Result<()> { | |
604 | +self.0.read_buf(buf) | |
605 | +} | |
606 | + | |
599 | 607 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { |
600 | 608 | self.0.read_vectored(bufs) |
601 | 609 | } |