parent
6b4f1c5e78
commit
2251e9abee
1 changed files with 10 additions and 0 deletions
|
@ -204,6 +204,16 @@ impl Read for Repeat {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// This function is not supported by `io::Repeat`, because there's no end of its data
|
||||||
|
fn read_to_end(&mut self, _: &mut Vec<u8>) -> io::Result<usize> {
|
||||||
|
Err(io::Error::from(io::ErrorKind::OutOfMemory))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// This function is not supported by `io::Repeat`, because there's no end of its data
|
||||||
|
fn read_to_string(&mut self, _: &mut String) -> io::Result<usize> {
|
||||||
|
Err(io::Error::from(io::ErrorKind::OutOfMemory))
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
|
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
|
||||||
let mut nwritten = 0;
|
let mut nwritten = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue