pub struct ClientMetrics { /* private fields */ }Expand description
Shared, lock-free metrics collected for Kafka client operations.
Clones refer to the same counters, so a handle obtained from a configuration continues to observe connections created from that configuration.
Implementations§
Source§impl ClientMetrics
impl ClientMetrics
Sourcepub fn snapshot(&self) -> ClientMetricsSnapshot
pub fn snapshot(&self) -> ClientMetricsSnapshot
Returns a point-in-time snapshot of all request counters.
Trait Implementations§
Source§impl Clone for ClientMetrics
impl Clone for ClientMetrics
Source§fn clone(&self) -> ClientMetrics
fn clone(&self) -> ClientMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientMetrics
impl Debug for ClientMetrics
Source§impl Default for ClientMetrics
impl Default for ClientMetrics
Source§fn default() -> ClientMetrics
fn default() -> ClientMetrics
Returns the “default value” for a type. Read more
impl Eq for ClientMetrics
Auto Trait Implementations§
impl Freeze for ClientMetrics
impl RefUnwindSafe for ClientMetrics
impl Send for ClientMetrics
impl Sync for ClientMetrics
impl Unpin for ClientMetrics
impl UnsafeUnpin for ClientMetrics
impl UnwindSafe for ClientMetrics
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