pub struct QueueMetrics { /* private fields */ }Expand description
Queue-edge handles (etl_queue_*).
Implementations§
Source§impl QueueMetrics
impl QueueMetrics
Sourcepub fn new(labels: &ComponentLabels, queue: &str, capacity: usize) -> Self
pub fn new(labels: &ComponentLabels, queue: &str, capacity: usize) -> Self
Resolve handles for one queue edge (e.g. chain->sink/shard-3) and
publish its configured capacity.
Sourcepub fn full_events(&self, n: u64)
pub fn full_events(&self, n: u64)
Count try_send rejections.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueueMetrics
impl !RefUnwindSafe for QueueMetrics
impl Send for QueueMetrics
impl Sync for QueueMetrics
impl Unpin for QueueMetrics
impl UnsafeUnpin for QueueMetrics
impl !UnwindSafe for QueueMetrics
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