Module handler

Module handler 

Source
Expand description

high level async function service with “variadic generic” ish.

Structs§

HandlerService

Traits§

AsyncFn2
helper trait flatting tuple of arguments.
FromRequest
Extract type from Req asynchronously and receive them with function passed to handler_service.
Responder
Make Response with ownership of Req. The Output type is what returns from handler_service function.

Functions§

handler_service
A service factory shortcut offering given async function ability to use FromRequest to destruct and transform Service<Req>’s Req type and receive them as function argument.