api: ApiFutures need to be Send
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
1c1c8530c5
commit
6488a5cddb
@ -25,4 +25,4 @@ pub use router::*;
|
||||
pub type ApiOutput<Body> = Result<Response<Body>, Error>;
|
||||
|
||||
/// Future type of an API method. In order to support `async fn` this is a pinned box.
|
||||
pub type ApiFuture<Body> = Pin<Box<dyn Future<Output = ApiOutput<Body>>>>;
|
||||
pub type ApiFuture<Body> = Pin<Box<dyn Future<Output = ApiOutput<Body>> + Send>>;
|
||||
|
Loading…
Reference in New Issue
Block a user