pub struct ConsumerCounterSelection {
pub events_consumed: bool,
pub consumer_empty_spins: bool,
pub consumer_lag_max: bool,
}Expand description
Select which consumer-side counters are attached to a shared counters file.
The full set is appropriate for normal observability. Targeted microbenchmarks can deliberately narrow the set to reduce hot-path perturbation while still exposing the counters required for a specific experiment.
Fields§
§events_consumed: boolAttach the monotonic events_consumed counter.
consumer_empty_spins: boolAttach the consumer_empty_spins counter.
consumer_lag_max: boolAttach the consumer_lag_max high-water-mark counter.
Implementations§
Trait Implementations§
Source§impl Clone for ConsumerCounterSelection
impl Clone for ConsumerCounterSelection
Source§fn clone(&self) -> ConsumerCounterSelection
fn clone(&self) -> ConsumerCounterSelection
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 ConsumerCounterSelection
impl Debug for ConsumerCounterSelection
impl Copy for ConsumerCounterSelection
Auto Trait Implementations§
impl Freeze for ConsumerCounterSelection
impl RefUnwindSafe for ConsumerCounterSelection
impl Send for ConsumerCounterSelection
impl Sync for ConsumerCounterSelection
impl Unpin for ConsumerCounterSelection
impl UnsafeUnpin for ConsumerCounterSelection
impl UnwindSafe for ConsumerCounterSelection
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