Function start

Source
pub fn start<R, B, E>(f: impl Handler<R, B, E>, runtime: Option<Runtime>)
where B: From<Body>, E: Into<NowError>, R: IntoResponse,
Expand description

Creates a new lambda_runtime::Runtime and begins polling for Now Lambda events

§Arguments

  • f A type that conforms to the Handler interface.

§Panics

The function panics if the Lambda environment variables are not set.