Function lambda_http::run
source · [−]pub async fn run<'a, R, S>(handler: S) -> Result<(), Error> where
S: Service<Request, Response = R, Error = Error>,
S::Future: 'a,
R: IntoResponse, Expand description
Starts the Lambda Rust runtime and begins polling for events on the Lambda Runtime APIs.
This takes care of transforming the LambdaEvent into a Request and then
converting the result into a [LambdaResponse].