pub trait OrchRequest {
type Res: ResponseType;
// Required method
fn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Allows a request type to be used with the Orchestrator
.
Required Associated Types§
Sourcetype Res: ResponseType
type Res: ResponseType
The type of response returned by the request.
Required Methods§
Sourcefn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Business logic of a request. Given the policies, keys, and request ID (for debugging, send the request and return the response.