Struct tower_http::metrics::InFlightRequestsLayer
source · [−]pub struct InFlightRequestsLayer { /* private fields */ }This is supported on crate feature
metrics only.Expand description
Layer for applying InFlightRequests which counts the number of in-flight requests.
See the module docs for more details.
Implementations
Create a new InFlightRequestsLayer and its associated counter.
Create a new InFlightRequestsLayer that will update the given counter.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InFlightRequestsLayer
impl Send for InFlightRequestsLayer
impl Sync for InFlightRequestsLayer
impl Unpin for InFlightRequestsLayer
impl UnwindSafe for InFlightRequestsLayer
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more