pub struct NoopHandle;Expand description
什么都不做的 handle —— 遥测关闭时代的替身。
Implementations§
Source§impl NoopHandle
impl NoopHandle
Sourcepub fn record(&self, _event: TelemetryEvent) -> Result<(), TelemetryHandleError>
pub fn record(&self, _event: TelemetryEvent) -> Result<(), TelemetryHandleError>
record 永远 Ok。
Trait Implementations§
Source§impl Clone for NoopHandle
impl Clone for NoopHandle
Source§impl Debug for NoopHandle
impl Debug for NoopHandle
Source§impl Default for NoopHandle
impl Default for NoopHandle
Source§impl TelemetryRecorder for NoopHandle
impl TelemetryRecorder for NoopHandle
Auto Trait Implementations§
impl Forget for NoopHandle
impl Freeze for NoopHandle
impl Move for NoopHandle
impl RefUnwindSafe for NoopHandle
impl Send for NoopHandle
impl Sync for NoopHandle
impl Unpin for NoopHandle
impl UnsafeUnpin for NoopHandle
impl UnwindSafe for NoopHandle
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