Skip to main content

hyperlane_plugin_concurrency/
enum.rs

1/// Reason why a concurrency acquisition was shed (`503 Service Unavailable`).
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3pub enum ShedReason {
4    /// Global in-flight limit (or adaptive effective limit) was saturated.
5    GlobalLimitExceeded,
6    /// Matched route-prefix in-flight limit was saturated.
7    PrefixLimitExceeded,
8    /// Bounded wait timeout expired before a concurrency slot became available.
9    WaitTimedOut,
10}