Function start
Source pub fn start<EventError>(f: impl Handler<EventError>, runtime: Option<Runtime>)
Expand description
Creates a new runtime and begins polling for events using Lambda’s Runtime APIs.
§Arguments
f
A function pointer that conforms to the Handler
type.
§Panics
The function panics if the Lambda environment variables are not set.