Trait read_exact::ReadExactExt
[−]
[src]
pub trait ReadExactExt { fn read_exact_or_eof(&mut self, buf: &mut [u8]) -> Result<bool>; }
An extension trait that applies to all std::io::Read
types.
Required Methods
fn read_exact_or_eof(&mut self, buf: &mut [u8]) -> Result<bool>
Reads exactly the number of bytes to fill buf
, or zero.
This function returns true
upon successful read, or false
if no
data was read. No guarantees about the contents of buf
are provided
if the function returns false
or an error.
Implementors
impl<T: Read> ReadExactExt for T