pub struct NoopTelemetry;Expand description
空操作遥测实现,所有回调均为无操作。
适用于不需要监控的场景。
Trait Implementations§
Source§impl Telemetry for NoopTelemetry
impl Telemetry for NoopTelemetry
Source§fn on_publish(&self, _event_name: &str, _receivers: usize)
fn on_publish(&self, _event_name: &str, _receivers: usize)
事件发布时调用。
Source§fn on_publish_complete(&self, _event_name: &str, _elapsed: Duration)
fn on_publish_complete(&self, _event_name: &str, _elapsed: Duration)
事件发布完成后调用。
Source§fn on_subscribe(&self, _event_name: &str, _sub_id: usize)
fn on_subscribe(&self, _event_name: &str, _sub_id: usize)
订阅者注册时调用。
Source§fn on_handler_start(&self, _event_name: &str, _sub_id: usize)
fn on_handler_start(&self, _event_name: &str, _sub_id: usize)
Handler 执行前调用。
Auto Trait Implementations§
impl Freeze for NoopTelemetry
impl RefUnwindSafe for NoopTelemetry
impl Send for NoopTelemetry
impl Sync for NoopTelemetry
impl Unpin for NoopTelemetry
impl UnsafeUnpin for NoopTelemetry
impl UnwindSafe for NoopTelemetry
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