Struct mas_tower::InFlightCounterLayer
source · pub struct InFlightCounterLayer<OnRequest = ()> { /* private fields */ }
Expand description
Implementations§
source§impl InFlightCounterLayer
impl InFlightCounterLayer
sourcepub fn new(name: &'static str) -> Self
pub fn new(name: &'static str) -> Self
Create a new InFlightCounterLayer
.
source§impl<F> InFlightCounterLayer<F>
impl<F> InFlightCounterLayer<F>
sourcepub fn on_request<OnRequest>(
self,
on_request: OnRequest,
) -> InFlightCounterLayer<OnRequest>
pub fn on_request<OnRequest>( self, on_request: OnRequest, ) -> InFlightCounterLayer<OnRequest>
Set the MetricsAttributes
to use.
Trait Implementations§
source§impl<OnRequest: Clone> Clone for InFlightCounterLayer<OnRequest>
impl<OnRequest: Clone> Clone for InFlightCounterLayer<OnRequest>
source§fn clone(&self) -> InFlightCounterLayer<OnRequest>
fn clone(&self) -> InFlightCounterLayer<OnRequest>
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<OnRequest: Debug> Debug for InFlightCounterLayer<OnRequest>
impl<OnRequest: Debug> Debug for InFlightCounterLayer<OnRequest>
source§impl<S, OnRequest> Layer<S> for InFlightCounterLayer<OnRequest>where
OnRequest: Clone,
impl<S, OnRequest> Layer<S> for InFlightCounterLayer<OnRequest>where
OnRequest: Clone,
Auto Trait Implementations§
impl<OnRequest> Freeze for InFlightCounterLayer<OnRequest>where
OnRequest: Freeze,
impl<OnRequest = ()> !RefUnwindSafe for InFlightCounterLayer<OnRequest>
impl<OnRequest> Send for InFlightCounterLayer<OnRequest>where
OnRequest: Send,
impl<OnRequest> Sync for InFlightCounterLayer<OnRequest>where
OnRequest: Sync,
impl<OnRequest> Unpin for InFlightCounterLayer<OnRequest>where
OnRequest: Unpin,
impl<OnRequest = ()> !UnwindSafe for InFlightCounterLayer<OnRequest>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)