pub struct NullSink;Expand description
No-op sink for tests and for code paths where telemetry is explicitly
disabled. Always returns Ok; records nothing.
Trait Implementations§
Source§impl TelemetrySink for NullSink
impl TelemetrySink for NullSink
Source§fn record_summary(&self, _summary: &SessionSummary) -> Result<()>
fn record_summary(&self, _summary: &SessionSummary) -> Result<()>
Append the session summary at session close. Default no-op for
sinks that don’t distinguish rollups.
Auto Trait Implementations§
impl Freeze for NullSink
impl RefUnwindSafe for NullSink
impl Send for NullSink
impl Sync for NullSink
impl Unpin for NullSink
impl UnsafeUnpin for NullSink
impl UnwindSafe for NullSink
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