pub struct ActiveRequestGuard { /* private fields */ }Expand description
RAII guard that decrements praxis_http_active_requests on drop.
Acquired once per HTTP request. Pingora owns the request context by
value, so the drop runs on every terminal path (including a client
abort or an HTTP/2 stream reset, which skip the logging callback
entirely).
Trait Implementations§
Source§impl Drop for ActiveRequestGuard
impl Drop for ActiveRequestGuard
Auto Trait Implementations§
impl Freeze for ActiveRequestGuard
impl RefUnwindSafe for ActiveRequestGuard
impl Send for ActiveRequestGuard
impl Sync for ActiveRequestGuard
impl Unpin for ActiveRequestGuard
impl UnsafeUnpin for ActiveRequestGuard
impl UnwindSafe for ActiveRequestGuard
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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