Function lambda_http::run
source · pub async fn run<'a, R, S, E>(handler: S) -> Result<(), Error>where
S: Service<Request, Response = R, Error = E>,
S::Future: Send + 'a,
R: IntoResponse,
E: Debug + Display,
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
].