pub struct TelemetryWorker { /* private fields */ }Trait Implementations§
Source§impl Debug for TelemetryWorker
impl Debug for TelemetryWorker
Source§impl Worker for TelemetryWorker
impl Worker for TelemetryWorker
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 !Freeze for TelemetryWorker
impl !RefUnwindSafe for TelemetryWorker
impl !UnwindSafe for TelemetryWorker
impl Send for TelemetryWorker
impl Sync for TelemetryWorker
impl Unpin for TelemetryWorker
impl UnsafeUnpin for TelemetryWorker
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