pub struct InflightGuard { /* private fields */ }Expand description
Per-connection in-flight write accounting. The server inserts a
request’s nonce before dispatch — rejecting a duplicate (INVALID) or
an over-cap request (BUDGET) — and attaches this guard to the request;
the engine drops it once the request is answered, removing the nonce and
freeing a slot. Bounds the otherwise-unbounded engine channel depth (and
thus resident inbound content) to the in-flight cap.
Implementations§
Trait Implementations§
Source§impl Debug for InflightGuard
impl Debug for InflightGuard
Source§impl Drop for InflightGuard
impl Drop for InflightGuard
Auto Trait Implementations§
impl Freeze for InflightGuard
impl RefUnwindSafe for InflightGuard
impl Send for InflightGuard
impl Sync for InflightGuard
impl Unpin for InflightGuard
impl UnsafeUnpin for InflightGuard
impl UnwindSafe for InflightGuard
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