Skip to main content

wrap_async_reader

Function wrap_async_reader 

Source
pub fn wrap_async_reader<'a, R>(
    r: R,
    c: Compression,
) -> Pin<Box<dyn AsyncBufRead + Send + Unpin + 'a>>
where R: AsyncBufRead + Send + Unpin + 'a,
Available on crate feature compression only.
Expand description

Wrap an async buffered reader with a streaming decoder. None passes through.