]> git.proxmox.com Git - proxmox-backup.git/commit
tools: add AsyncChannelWriter
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 21 Oct 2020 07:29:07 +0000 (09:29 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 21 Oct 2020 08:04:22 +0000 (10:04 +0200)
commit943479f5f6bfa0153ce66f320e0500250fb8feaa
treef41c11b28901d48e84530d194272ab0cdc204e7a
parentfdce52aa99aaeebdfd21db69c0dceb0ecd0f978e
tools: add AsyncChannelWriter

similar to StdChannelWriter, but implements AsyncWrite and sends
to a tokio::sync::mpsc::Sender

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools.rs
src/tools/async_channel_writer.rs [new file with mode: 0644]