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 + Into<Diagnostic>,
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
.