Module lifecycle

Source
Expand description

Request lifecycle hooks that can be used to further customize how and what callbacks to run on events.

axum-prometheus is built on top of lifecycle hooks. Using this module allows you to customize behavior even more.

Modules§

layer
service

Enums§

FailedAt
Enum used to specify where an error was encountered.

Traits§

Callbacks
Trait that defines callbacks for LifeCycle to call.
OnBodyChunk
A trait that allows to hook into http_body::Body::poll_frame’s lifecycle.