Function copy_async_to_sync

Source
pub async fn copy_async_to_sync<R: AsyncRead, W: Write + ?Sized>(
    reader: R,
    writer: &mut W,
) -> Result<usize>
Expand description

Reads from an async source and writes to a sync destination. Does not spawn a task, so writes will block.