proxmox/proxmox-async/src/blocking/mod.rs
Dominik Csapak 9471ba9969 proxmox-async: add SenderWriter helper
this wraps around a tokio Sender for Vec<u8>, but implements a blocking
write. We can use thas as an adapter for something that only takes a
writer, and can read from it asynchonously

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-04-12 14:05:14 +02:00

15 lines
375 B
Rust

//! Async wrappers for blocking I/O (adding `block_in_place` around
//! channels/readers)
mod std_channel_stream;
pub use std_channel_stream::StdChannelStream;
mod tokio_writer_adapter;
pub use tokio_writer_adapter::TokioWriterAdapter;
mod wrapped_reader_stream;
pub use wrapped_reader_stream::WrappedReaderStream;
mod sender_writer;
pub use sender_writer::SenderWriter;