pub enum Outcome {
Allowed,
Blocked,
RateLimited,
BadRequest,
UpstreamError,
InternalError,
}Expand description
Final disposition of a request — the closed value set of the decision label.
Discriminants are the array index into the counters; keep Outcome::ALL in sync.
Variants§
Allowed
Forwarded to the backend (whatever status the app returned).
Blocked
Anomaly/high-confidence block (403).
RateLimited
Rate limit exceeded (429).
BadRequest
Rejected before forwarding for a malformed/over-limit request (400).
UpstreamError
The BACKEND failed/timed out/was unreachable — structured upstream error (502/503).
InternalError
The WAF’s OWN machinery errored unexpectedly — catch-all handle 502. Distinct from
UpstreamError so “backend is down” and “we have a bug” are not conflated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more