pub async fn read_to_end(
buffer: &mut BytesMut,
reader: impl AsyncRead + Unpin,
) -> Result<(), Error>
Expand description
Reads reader
to end into buffer
.
Also see read_to_end_or_max()
.
ยงErrors
This function will return any errors emitted from reader
.