src/api_schema/router.rs: switch to async
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ffb6434485
commit
f2d9b73c91
@ -12,7 +12,7 @@ use hyper::http::request::Parts;
|
|||||||
|
|
||||||
use super::api_handler::*;
|
use super::api_handler::*;
|
||||||
|
|
||||||
pub type BoxFut = Box<dyn Future<Item = Response<Body>, Error = failure::Error> + Send>;
|
pub type BoxFut = Box<dyn Future<Output = Result<Response<Body>, failure::Error>> + Send>;
|
||||||
|
|
||||||
/// Abstract Interface for API methods to interact with the environment
|
/// Abstract Interface for API methods to interact with the environment
|
||||||
pub trait RpcEnvironment: std::any::Any + crate::tools::AsAny + Send {
|
pub trait RpcEnvironment: std::any::Any + crate::tools::AsAny + Send {
|
||||||
|
Loading…
Reference in New Issue
Block a user