Module layers

Source
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
BoxCloneService
A Clone + Send boxed Service.
CommonLayer
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.
ServiceBuilder
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 a Response.

Functions§

layer_fn
Returns a new LayerFn that implements Layer by calling the given function.