pub struct TelemetryGuard { /* private fields */ }Expand description
Opaque guard — dropping it flushes and shuts down the OTLP pipeline.
Hold this in main() until exit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TelemetryGuard
impl !RefUnwindSafe for TelemetryGuard
impl Send for TelemetryGuard
impl Sync for TelemetryGuard
impl Unpin for TelemetryGuard
impl UnsafeUnpin for TelemetryGuard
impl !UnwindSafe for TelemetryGuard
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