pub trait AdminInterfaceApi: 'static + Send + Sync + Clone {
fn handle_admin_request_inner<'life0, 'async_trait>(
&'life0 self,
request: AdminRequest
) -> Pin<Box<dyn Future<Output = ConductorApiResult<AdminResponse>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn handle_admin_request<'life0, 'async_trait>(
&'life0 self,
request: AdminRequest
) -> Pin<Box<dyn Future<Output = AdminResponse> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
}
Expand description
A trait for the interface that a Conductor exposes to the outside world to use for administering the conductor. This trait has a one mock implementation and one “Real” implementation
Required Methods
fn handle_admin_request_inner<'life0, 'async_trait>(
&'life0 self,
request: AdminRequest
) -> Pin<Box<dyn Future<Output = ConductorApiResult<AdminResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn handle_admin_request_inner<'life0, 'async_trait>(
&'life0 self,
request: AdminRequest
) -> Pin<Box<dyn Future<Output = ConductorApiResult<AdminResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Call an admin function to modify this Conductor’s behavior
Provided Methods
fn handle_admin_request<'life0, 'async_trait>(
&'life0 self,
request: AdminRequest
) -> Pin<Box<dyn Future<Output = AdminResponse> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn handle_admin_request<'life0, 'async_trait>(
&'life0 self,
request: AdminRequest
) -> Pin<Box<dyn Future<Output = AdminResponse> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deal with error cases produced by handle_admin_request_inner