pub trait InputProvider: Send + Sync {
// Required method
fn get_input<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 InputRequest,
context: &'life2 InputContext,
) -> Pin<Box<dyn Future<Output = InputResult<InputResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
输入提供者trait / Input provider trait
Required Methods§
Sourcefn get_input<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 InputRequest,
context: &'life2 InputContext,
) -> Pin<Box<dyn Future<Output = InputResult<InputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_input<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 InputRequest,
context: &'life2 InputContext,
) -> Pin<Box<dyn Future<Output = InputResult<InputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
获取输入 / Get input