From 1531a619ab39ef77c4616e79cbf8b844f21b0ab6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 7 Aug 2023 10:58:24 +0200 Subject: [PATCH] client: rename response future to ResponseFuture Signed-off-by: Wolfgang Bumiller --- proxmox-client/src/client.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxmox-client/src/client.rs b/proxmox-client/src/client.rs index 2f365fee..4231bb21 100644 --- a/proxmox-client/src/client.rs +++ b/proxmox-client/src/client.rs @@ -21,11 +21,11 @@ use crate::{Authentication, Environment, Error, Token}; pub trait HttpClient: Send + Sync { type Error: Error; #[cfg(not(target_arch = "wasm32"))] - type Request: Future>, Self::Error>> + Send; + type ResponseFuture: Future>, Self::Error>> + Send; #[cfg(target_arch = "wasm32")] - type Request: Future>, Self::Error>>; + type ResponseFuture: Future>, Self::Error>>; - fn request(&self, request: Request>) -> Self::Request; + fn request(&self, request: Request>) -> Self::ResponseFuture; } /// Proxmox VE high level API client. @@ -698,10 +698,10 @@ mod hyper_client_extras { impl super::HttpClient for Arc { type Error = anyhow::Error; #[allow(clippy::type_complexity)] - type Request = + type ResponseFuture = std::pin::Pin>, Self::Error>> + Send>>; - fn request(&self, request: Request>) -> Self::Request { + fn request(&self, request: Request>) -> Self::ResponseFuture { let (parts, body) = request.into_parts(); let request = Request::::from_parts(parts, body.into()); let this = Arc::clone(self);