pub struct TelemetryCollector { /* private fields */ }Implementations§
Source§impl TelemetryCollector
impl TelemetryCollector
pub fn new() -> Self
pub async fn record_request(&self)
pub async fn record_batch(&self, batch_size: usize)
pub async fn get_metrics(&self) -> DataLoaderMetrics
Trait Implementations§
Source§impl Clone for TelemetryCollector
impl Clone for TelemetryCollector
Source§fn clone(&self) -> TelemetryCollector
fn clone(&self) -> TelemetryCollector
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 TelemetryCollector
impl !RefUnwindSafe for TelemetryCollector
impl Send for TelemetryCollector
impl Sync for TelemetryCollector
impl Unpin for TelemetryCollector
impl !UnwindSafe for TelemetryCollector
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