pub trait Handler<Input>: Send + Sync + 'static {
type Output;
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
input: Input
) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
A simplified asynchronous interface for handling input and output.
Composable request handlers.