Expand description
Represents middleware offered through tower
Modules§
- extensions
- Extension data for tasks.
Structs§
- AckLayer
- A layer that acknowledges a job completed successfully
- AckService
- The underlying service for an AckLayer
- BoxClone
Service - A
Clone
+Send
boxedService
. - Common
Layer - A generic layer that has been stripped off types. This is returned by a [crate::Backend] and can be used to customize the middleware of the service consuming tasks
- Identity
- A no-op middleware.
- Service
Builder - Declaratively construct
Service
values.
Traits§
- Ack
- A trait for acknowledging successful processing
This trait is called even when a task fails.
This is a way of a [
Backend
] to save the result of a job or message - Layer
- Decorates a
Service
, transforming either the request or the response. - Service
- An asynchronous function from a
Request
to aResponse
.