Trait holochain::conductor::api::AppInterfaceApi
source · pub trait AppInterfaceApi: 'static + Send + Sync + Clone {
// Required method
fn handle_app_request_inner<'life0, 'async_trait>(
&'life0 self,
request: AppRequest
) -> Pin<Box<dyn Future<Output = ConductorApiResult<AppResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn handle_app_request<'life0, 'async_trait>(
&'life0 self,
request: AppRequest
) -> Pin<Box<dyn Future<Output = AppResponse> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
The interface that a Conductor exposes to the outside world.
Required Methods§
sourcefn handle_app_request_inner<'life0, 'async_trait>(
&'life0 self,
request: AppRequest
) -> Pin<Box<dyn Future<Output = ConductorApiResult<AppResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_app_request_inner<'life0, 'async_trait>(
&'life0 self,
request: AppRequest
) -> Pin<Box<dyn Future<Output = ConductorApiResult<AppResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Call an admin function to modify this Conductor’s behavior
Provided Methods§
sourcefn handle_app_request<'life0, 'async_trait>(
&'life0 self,
request: AppRequest
) -> Pin<Box<dyn Future<Output = AppResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_app_request<'life0, 'async_trait>(
&'life0 self,
request: AppRequest
) -> Pin<Box<dyn Future<Output = AppResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Deal with error cases produced by handle_app_request_inner
Object Safety§
This trait is not object safe.