pub struct TelemetryClient { /* private fields */ }
Expand description
A client specifically for sending telemetry data.
Implementations§
Source§impl TelemetryClient
impl TelemetryClient
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Sets the batch size for sending telemetry data.
Sourcepub async fn record(&self, data: TelemetryData) -> Result<()>
pub async fn record(&self, data: TelemetryData) -> Result<()>
Records a single telemetry data point.
Trait Implementations§
Source§impl Clone for TelemetryClient
impl Clone for TelemetryClient
Source§fn clone(&self) -> TelemetryClient
fn clone(&self) -> TelemetryClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TelemetryClient
impl !RefUnwindSafe for TelemetryClient
impl Send for TelemetryClient
impl Sync for TelemetryClient
impl Unpin for TelemetryClient
impl !UnwindSafe for TelemetryClient
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