rustmax

Module tower

Source
Expand description

Service request/response abstraction (HTTP middleware) for tokio and axum.

See crate ::tower.

Modules§

  • Middleware that allows balancing load among multiple services.
  • Middleware that provides a buffered mpsc channel to a service.
  • Builder types to compose layers and services
  • Service discovery
  • Conditionally dispatch requests to the inner service based on the result of a predicate.
  • Pre-emptively retry requests which have been outstanding for longer than a given latency percentile.
  • A collection of Layer based tower services
  • Tower middleware for limiting requests.
  • Service load measurement
  • Middleware for shedding load when inner services aren’t ready.
  • Trait aliases for Services that produce specific types of Responses.
  • A cache of services
  • Reconnect services when they fail.
  • Middleware for retrying “failed” requests.
  • When an underlying service is not ready, drive it to readiness on a background task.
  • This module provides functionality to aid managing routing requests between Services.
  • Middleware that applies a timeout to requests.
  • Various utility types and functions that are generally used with Tower.

Structs§

Traits§

  • Decorates a Service, transforming either the request or the response.
  • Creates new Service values.
  • An asynchronous function from a Request to a Response.
  • An extension trait for Services that provides a variety of convenient adapters

Functions§

Type Aliases§

  • Alias for a type-erased error type.