From 5bd54b4d9b1cfdde0ee9af292ca965441ec87c6b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 20 Nov 2021 16:41:53 +0100 Subject: [PATCH] proxmox-async: move AsyncChannelWriter to src/io Signed-off-by: Dietmar Maurer --- proxmox-async/src/{stream => io}/async_channel_writer.rs | 0 proxmox-async/src/io/mod.rs | 4 ++++ proxmox-async/src/lib.rs | 1 + proxmox-async/src/stream/mod.rs | 3 --- 4 files changed, 5 insertions(+), 3 deletions(-) rename proxmox-async/src/{stream => io}/async_channel_writer.rs (100%) create mode 100644 proxmox-async/src/io/mod.rs diff --git a/proxmox-async/src/stream/async_channel_writer.rs b/proxmox-async/src/io/async_channel_writer.rs similarity index 100% rename from proxmox-async/src/stream/async_channel_writer.rs rename to proxmox-async/src/io/async_channel_writer.rs diff --git a/proxmox-async/src/io/mod.rs b/proxmox-async/src/io/mod.rs new file mode 100644 index 00000000..9a6d8a62 --- /dev/null +++ b/proxmox-async/src/io/mod.rs @@ -0,0 +1,4 @@ +//! Helper which implements AsyncRead/AsyncWrite + +mod async_channel_writer; +pub use async_channel_writer::AsyncChannelWriter; diff --git a/proxmox-async/src/lib.rs b/proxmox-async/src/lib.rs index 7a78f08d..aee388c0 100644 --- a/proxmox-async/src/lib.rs +++ b/proxmox-async/src/lib.rs @@ -1,6 +1,7 @@ pub mod blocking; pub mod broadcast_future; pub mod compression; +pub mod io; pub mod runtime; pub mod stream; pub mod zip; diff --git a/proxmox-async/src/stream/mod.rs b/proxmox-async/src/stream/mod.rs index 26f9e516..f40ba7bf 100644 --- a/proxmox-async/src/stream/mod.rs +++ b/proxmox-async/src/stream/mod.rs @@ -1,7 +1,4 @@ //! Wrappers between async readers and streams. -mod async_channel_writer; -pub use async_channel_writer::AsyncChannelWriter; - mod async_reader_stream; pub use async_reader_stream::AsyncReaderStream;