pub struct Pending { /* private fields */ }Expand description
One accepted request that has not finished, released when dropped.
The companion to Slot, and deliberately not the same thing: a slot is
rationed and is taken only once a request has proved it deserves one, while
this is taken the moment the request stream is accepted and rations nothing.
What it buys is the drain being able to see a request that is between those
two points — headers still arriving, credentials being checked — which is
exactly the request a tunnel-count drain used to close the connection on,
against the “might have been processed” its own GOAWAY identifier had just
signalled (RFC 9114 §5.2).
Dropping is the only way it is given back, for the reason Slot gives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnsafeUnpin for Pending
impl UnwindSafe for Pending
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