proxmox/proxmox-api/src/lib.rs
Wolfgang Bumiller 068d56ed3d delete the old api macro stuff
to be replaced by a new set of macros for the current api
schema in proxmox-backup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-11-21 13:13:18 +01:00

14 lines
429 B
Rust

//! Proxmox API module. This provides utilities for HTTP and command line APIs.
use std::future::Future;
use std::pin::Pin;
use failure::Error;
use http::Response;
/// Return type of an API method.
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>> + Send>>;