Module policy

Source
Available on crate feature limit only.
Expand description

Limit policies for super::Limit define how requests are handled when the limit is reached for a given request.

Structs§

ConcurrentPolicy
A policy that limits the number of concurrent requests.
LimitReached
The error that indicates the request is aborted, because the concurrent request limit is reached.

Enums§

PolicyOutput
The output of a limit policy.

Traits§

Policy
A limit policy is used to determine whether a request is allowed to proceed, and if not, how to handle it.