Trait lamedh_http::LambdaHandler [−][src]
A trait describing an asynchronous function A
to B
.
Associated Types
Loading content...Required methods
Loading content...Implementations on Foreign Types
impl<F, A, B, Error, Fut> Handler<A, B> for HandlerFn<F> where
Error: Into<Box<dyn Error + 'static + Send + Sync, Global>> + Display,
Fut: Future<Output = Result<B, Error>> + Send,
F: Fn(A, Context) -> Fut,
[src]
Error: Into<Box<dyn Error + 'static + Send + Sync, Global>> + Display,
Fut: Future<Output = Result<B, Error>> + Send,
F: Fn(A, Context) -> Fut,
type Error = Error
type Fut = Fut
pub fn call(
&mut self,
req: A,
ctx: Context
) -> <HandlerFn<F> as Handler<A, B>>::Fut
[src]
&mut self,
req: A,
ctx: Context
) -> <HandlerFn<F> as Handler<A, B>>::Fut