Function lambda_runtime::handler_fn
source ยท pub fn handler_fn<A, F, Fut>(f: F) -> ServiceFn<impl Fn(LambdaEvent<A>) -> Fut>
๐Deprecated since 0.5.0: Use
service_fn
and LambdaEvent
insteadExpand description
Return a new ServiceFn
with a closure that takes an event and context as separate arguments.