Function tokio_io::io::read_to_end
source · [−]Expand description
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.