Struct sc_telemetry::TelemetryWorker [−][src]
pub struct TelemetryWorker { /* fields omitted */ }Telemetry worker.
It should run as a background task using the TelemetryWorker::run method. This method
will consume the object and any further attempts of initializing a new telemetry through its
handle will fail (without being fatal).
Implementations
impl TelemetryWorker[src]
impl TelemetryWorker[src]pub fn handle(&self) -> TelemetryHandle[src]
Get a new TelemetryHandle.
This is used when you want to register with the TelemetryWorker.
pub async fn run(self)[src]
Run the telemetry worker.
This should be run in a background task.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TelemetryWorker
impl Send for TelemetryWorker
impl Sync for TelemetryWorker
impl Unpin for TelemetryWorker
impl !UnwindSafe for TelemetryWorker
Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]