Function kvarn_async::read_to_end
source · pub async fn read_to_end(
buffer: &mut BytesMut,
reader: impl AsyncRead + Unpin
) -> Result<()>
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
.