Crate fishrock_lambda_runtime

Source
Expand description

The mechanism available for defining a Lambda function is as follows:

Create a type that conforms to the Handler trait. This type can then be passed to the the lambda_runtime::run function, which launches and runs the Lambda runtime.

Structs§

Config
Configuration derived from environment variables.
Context
The Lambda function execution context. The values in this struct are populated using the Lambda environment variables and the headers returned by the poll request to the Runtime APIs.
HandlerFn
A Handler implemented by a closure.

Traits§

Handler
A trait describing an asynchronous function A to B.

Functions§

handler_fn
Returns a new HandlerFn with the given closure.
run
Starts the Lambda Rust runtime and begins polling for events on the Lambda Runtime APIs.

Type Aliases§

Error
Error type that lambdas may result in