]> git.proxmox.com Git - proxmox.git/commitdiff
move channel/stream helpers to pbs-tools
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 20 Jul 2021 09:26:29 +0000 (11:26 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 20 Jul 2021 09:27:40 +0000 (11:27 +0200)
pbs_tools
  ::blocking: std/async wrapping with block_in_place
  ::stream: stream <-> AsyncRead/AsyncWrite wrapping

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/server/rest.rs

index 166804849891ba4100b9d308a99bb05d6b1163fa..62b63a5d430b30c0ee2ce4d0e2d37e93a3f893ff 100644 (file)
@@ -31,6 +31,7 @@ use proxmox::api::{
 use proxmox::http_err;
 
 use pbs_tools::compression::{DeflateEncoder, Level};
+use pbs_tools::stream::AsyncReaderStream;
 
 use super::auth::AuthError;
 use super::environment::RestEnvironment;
@@ -42,7 +43,6 @@ use crate::auth_helpers::*;
 use crate::config::cached_user_info::CachedUserInfo;
 use crate::tools;
 use crate::tools::compression::CompressionMethod;
-use crate::tools::AsyncReaderStream;
 use crate::tools::FileLogger;
 
 extern "C" {