pub fn wrap_async_writer<'a, W>(
w: W,
c: Compression,
) -> Pin<Box<dyn AsyncWrite + Send + Unpin + 'a>>Available on crate feature
compression only.Expand description
Wrap an async writer with a streaming encoder. None passes through.
Callers must call tokio::io::AsyncWriteExt::shutdown on the returned
writer to flush the trailer before the underlying writer is dropped.