]> git.proxmox.com Git - pxar.git/commit
decoder: aio: Make `TokioReader` public
authorMax Carrara <m.carrara@proxmox.com>
Fri, 21 Jul 2023 15:58:19 +0000 (17:58 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Aug 2023 11:09:09 +0000 (13:09 +0200)
commit4355e8e6197d46510dbc8bb9ae20ab63028456e8
tree46d001b6e2f888554c7fb3256cd4d53667205410
parentde472e826d8c0ac3d18b20d8ea4acdf32bdf228b
decoder: aio: Make `TokioReader` public

This exposes `decoder::aio::TokioReader<T>` in a similar manner to
`decoder::sync::StandardReader<T>`, which is necessary if one wants
to remain generic over `T: tokio::io::AsyncRead`, e.g.:

> struct FooDecoder<T: tokio::io::AsyncRead> {
>    decoder: aio::Decoder<aio::TokioReader<T>>,
> }

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
src/decoder/aio.rs