rama

Module layer

Expand description

Layer type and utilities.

Layers are the abstraction of middleware in Rama.

Direct copy of tower-layer.

Modules§

  • Middleware that clones a value into the incoming Context.
  • Middleware that gets called with a clone of the value of to given type if it is available in the current Context.
  • A middleware that limits the number of in-flight requests.
  • Middleware that applies a timeout to requests.

Structs§

Traits§

  • A layer that produces a Layered service (middleware(inner service)).
  • Utility error trait to allow Rama layers to return a default error as well as a user-defined one, being it a Clone-able type or a Fn returning an error type.

Functions§