Function kvarn::prelude::networking::read_to_end
source · pub async fn read_to_end(
buffer: &mut BytesMut,
reader: impl AsyncRead + Unpin
) -> impl Future<Output = 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
.