pub struct TelemetryPublisher { /* private fields */ }Expand description
Live telemetry handle (Self::publish is a no-op when telemetry is disabled).
Implementations§
Source§impl TelemetryPublisher
impl TelemetryPublisher
Sourcepub fn noop() -> TelemetryPublisher
pub fn noop() -> TelemetryPublisher
Never publishes (upstream behavior when no endpoint and no custom sink).
pub async fn publish(&self, event: TelemetryEvent)
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryPublisher
impl !UnwindSafe for TelemetryPublisher
impl Freeze for TelemetryPublisher
impl Send for TelemetryPublisher
impl Sync for TelemetryPublisher
impl Unpin for TelemetryPublisher
impl UnsafeUnpin for TelemetryPublisher
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