pub struct InFlightRequestsLayer { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Layer for applying InFlightRequests
which counts the number of in-flight requests.
See the module docs for more details.
Implementations§
Source§impl InFlightRequestsLayer
impl InFlightRequestsLayer
Sourcepub fn pair() -> (Self, InFlightRequestsCounter)
pub fn pair() -> (Self, InFlightRequestsCounter)
Create a new InFlightRequestsLayer
and its associated counter.
Sourcepub fn new(counter: InFlightRequestsCounter) -> Self
pub fn new(counter: InFlightRequestsCounter) -> Self
Create a new InFlightRequestsLayer
that will update the given counter.
Trait Implementations§
Source§impl Clone for InFlightRequestsLayer
impl Clone for InFlightRequestsLayer
Source§fn clone(&self) -> InFlightRequestsLayer
fn clone(&self) -> InFlightRequestsLayer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InFlightRequestsLayer
impl Debug for InFlightRequestsLayer
Auto Trait Implementations§
impl Freeze for InFlightRequestsLayer
impl RefUnwindSafe for InFlightRequestsLayer
impl Send for InFlightRequestsLayer
impl Sync for InFlightRequestsLayer
impl Unpin for InFlightRequestsLayer
impl UnwindSafe for InFlightRequestsLayer
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