pub struct UsageReporter { /* private fields */ }
Expand description
Exposes a simple API to report usage statistics.
Implementations§
Source§impl UsageReporter
impl UsageReporter
Sourcepub async fn report_usage_stats(
&self,
report: &UsageStatsReport,
) -> Result<(), Error>
pub async fn report_usage_stats( &self, report: &UsageStatsReport, ) -> Result<(), Error>
Reports usage statistics to the configured endpoint.
Trait Implementations§
Source§impl Debug for UsageReporter
impl Debug for UsageReporter
Source§impl Default for UsageReporter
impl Default for UsageReporter
Source§fn default() -> UsageReporter
fn default() -> UsageReporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageReporter
impl RefUnwindSafe for UsageReporter
impl Send for UsageReporter
impl Sync for UsageReporter
impl Unpin for UsageReporter
impl UnwindSafe for UsageReporter
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