Docs.rs
  • lambda_runtime-0.8.3
    • lambda_runtime 0.8.3
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • sapessi
    • bnusunny
    • maxday
    • Dependencies
      • async-stream ^0.3 normal
      • base64 ^0.20.0 normal
      • bytes ^1.0 normal
      • futures ^0.3 normal
      • http ^0.2 normal
      • http-body ^0.4 normal
      • http-serde ^1.1.3 normal
      • hyper ^0.14.20 normal
      • lambda_runtime_api_client ^0.8 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • serde_path_to_error ^0.1.11 normal
      • tokio ^1.0 normal
      • tokio-stream ^0.1.2 normal
      • tower ^0.4 normal
      • tracing ^0.1.37 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate lambda_runtime

lambda_runtime0.8.3

  • All Items
  • Re-exports
  • Structs
  • Enums
  • Traits
  • Functions
  • Type Aliases

Crates

  • lambda_runtime
?
Change settings

Crate lambda_runtime

source ·
Expand description

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

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

Re-exports

  • pub use tower;

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.
  • LambdaEvent
    Incoming Lambda request containing the event payload and context.
  • MetadataPrelude
    Metadata prelude for a stream response.
  • StreamResponse
    A streaming response that contains the metadata prelude and the stream of bytes that will be sent to the client.

Enums

  • FunctionResponse
    An enum representing the response of a function that can return either a buffered response of type B or a streaming response of type S.

Traits

  • IntoFunctionResponse
    a trait that can be implemented for any type that can be converted into a FunctionResponse. This allows us to use the into method to convert a type into a FunctionResponse.
  • Service
    An asynchronous function from a Request to a Response.

Functions

  • handler_fnDeprecated
    Return a new ServiceFn with a closure that takes an event and context as separate arguments.
  • run
    Starts the Lambda Rust runtime and begins polling for events on the Lambda Runtime APIs.
  • service_fn
    Returns a new ServiceFn with the given closure.

Type Aliases

  • Error
    Error type that lambdas may result in

Results

Query parser error: "Unexpected - (did you mean ->?)".