pub enum Admission {
Admit(SlotGuard),
NotReady,
Overloaded,
}Expand description
The verdict of Lifecycle::admit: whether a request may reach the handler,
and if not, WHY — so both tiers answer the identical status.
Variants§
Admit(SlotGuard)
The request may run; hold this slot permit until the handler returns (dropping it frees the slot and decrements the in-flight count).
NotReady
The server is draining or not yet ready — shed with 503.
Overloaded
All LifecycleConfig::max_inflight slots are busy — shed with 503
(bounded backpressure), promptly, never a queue.
Auto Trait Implementations§
impl Freeze for Admission
impl !RefUnwindSafe for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
impl !UnwindSafe for Admission
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