add read_buf for &File
This commit is contained in:
parent
7c5a895a89
commit
fc49a29a14
@ -676,6 +676,10 @@ impl Read for &File {
|
|||||||
self.inner.read(buf)
|
self.inner.read(buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn read_buf(&mut self, buf: &mut ReadBuf<'_>) -> io::Result<()> {
|
||||||
|
self.inner.read_buf(buf)
|
||||||
|
}
|
||||||
|
|
||||||
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
|
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
|
||||||
self.inner.read_vectored(bufs)
|
self.inner.read_vectored(bufs)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user