Crate tower_service[][src]

Definition of the core Service trait to Tower

These traits provide the necessary abstractions for defining a request / response clients and servers. They are simple but powerul and are the used as the foundation for the rest of Tower.

  • Service is the primary trait and defines the request / response exchange. See that trait for more details.
  • NewService is essentially a service factory. It is responsible for generating Service values on demand.

Structs

Ready

Future yielding a Service once the service is ready to process a request

Traits

NewService

Creates new Service values.

Service

An asynchronous function from Request to a Response.