Module runtime

Module runtime 

Source
Expand description

Defines the crate::runtime::LambdaRuntime API and provides a default generic implementation.

Structs§

DefaultRuntime
The default generic implementation of the LambdaRuntime interface. Works by accepting a pointer to an initialization function or a closure initializer - that is run once and initializes “global” variables that are created once and persist across the runtime’s life (DB connections, heap allocated static data etc…).

Traits§

LambdaRuntime
A generic trait defining an interface for a Lambda runtime. The HTTP Backend in use is defined by the input types T that implements Transport and R implementing LambdaAPIResponse. The OUT type parameter is the user-defined response type which represents the success result of the event handler.