pub struct TelemetryWorker<C: HttpClientCapability + SleepCapability + MaybeSend + Sync + 'static> { /* private fields */ }Expand description
C is the capability bundle. Leaf crates pin it to a concrete type
(NativeCapabilities on native, WasmCapabilities on wasm).
Trait Implementations§
Source§impl<C: HttpClientCapability + SleepCapability + MaybeSend + Sync + 'static> Debug for TelemetryWorker<C>
impl<C: HttpClientCapability + SleepCapability + MaybeSend + Sync + 'static> Debug for TelemetryWorker<C>
Source§impl<C: HttpClientCapability + SleepCapability + MaybeSend + Sync + 'static> Worker for TelemetryWorker<C>
impl<C: HttpClientCapability + SleepCapability + MaybeSend + Sync + 'static> Worker for TelemetryWorker<C>
Source§fn reset(&mut self)
fn reset(&mut self)
Reset the worker state in the child process after a fork.
Discards inherited pending telemetry state and dedupe history without sending anything, and drains the mailbox so that actions queued before the fork are not processed by the child.
Source§fn trigger<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn trigger<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Function called between each
run to wait for the next run.
This function should be cancellation safe as it can be cancelled at any yield point.Source§fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Main worker function Read more
Auto Trait Implementations§
impl<C> !Freeze for TelemetryWorker<C>
impl<C> !RefUnwindSafe for TelemetryWorker<C>
impl<C> !UnwindSafe for TelemetryWorker<C>
impl<C> Send for TelemetryWorker<C>
impl<C> Sync for TelemetryWorker<C>
impl<C> Unpin for TelemetryWorker<C>where
C: Unpin,
impl<C> UnsafeUnpin for TelemetryWorker<C>where
C: UnsafeUnpin,
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