pub struct MetricsInterceptor {
pub counter: AtomicU64,
}Expand description
指标拦截器
Fields§
§counter: AtomicU64Implementations§
Trait Implementations§
Source§impl Component for MetricsInterceptor
impl Component for MetricsInterceptor
Source§impl Default for MetricsInterceptor
impl Default for MetricsInterceptor
Source§impl Interceptor for MetricsInterceptor
impl Interceptor for MetricsInterceptor
fn before(&self, _ctx: &CallContext) -> RIE<()>
fn after(&self, ctx: &CallContext, result: &mut CallResult)
Auto Trait Implementations§
impl !Freeze for MetricsInterceptor
impl RefUnwindSafe for MetricsInterceptor
impl Send for MetricsInterceptor
impl Sync for MetricsInterceptor
impl Unpin for MetricsInterceptor
impl UnsafeUnpin for MetricsInterceptor
impl UnwindSafe for MetricsInterceptor
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