[−][src]Function tokio::io::read_to_end
pub fn read_to_end<A>(a: A, buf: Vec<u8>) -> ReadToEnd<A> where
A: AsyncRead,
Creates a future which will read all the bytes associated with the I/O
object A
into the buffer provided.
In the case of an error the buffer and the object will be discarded, with the error yielded. In the case of success both the object and the buffer will be returned, with all data read from the stream appended to the buffer.