/// Context attribute key storing the active RAII [`ConcurrencyPermit`](crate::ConcurrencyPermit).
pub const ATTR_CONCURRENCY_PERMIT: &str = "hyperlane_plugin_concurrency_permit";
/// Default global maximum concurrent in-flight requests.
pub const DEFAULT_MAX_IN_FLIGHT: usize = 1_024;
/// Default `Retry-After` header value in seconds emitted on `503 Service Unavailable`.
pub const DEFAULT_RETRY_AFTER_SECS: u64 = 1;
/// Default rejection body emitted when concurrency capacity is saturated.
pub const DEFAULT_SHED_BODY: & = b"Service Unavailable";
/// Default `Content-Type` header emitted on shed responses.
pub const DEFAULT_SHED_CONTENT_TYPE: &str = "text/plain; charset=utf-8";
/// Default target request latency in milliseconds for AIMD adaptive load shedding.
pub const DEFAULT_ADAPTIVE_TARGET_LATENCY_MS: u64 = 100;
/// Default EWMA smoothing denominator (alpha = 1 / 8).
pub const EWMA_SHIFT: u32 = 3;
/// Microseconds per millisecond conversion factor.
pub const MICROS_PER_MS: u64 = 1_000;
/// Microseconds per second conversion factor for fast 64-bit elapsed latency calculation.
pub const MICROS_PER_SECOND: u64 = 1_000_000;
/// Threshold above which exact exempt-path checks switch from linear slice scan to hash set.
pub const EXEMPT_SET_THRESHOLD: usize = 4;
/// Sentinel stored in compact `u32` permit slots when no prefix concurrency rule matched.
pub const NO_PREFIX_SLOT: u32 = u32MAX;
/// ASCII forward-slash byte (`/`).
pub const ASCII_SLASH: u8 = b'/';