pub struct BackpressureMetrics { /* private fields */ }Expand description
Backpressure handles (etl_backpressure_*).
Implementations§
Source§impl BackpressureMetrics
impl BackpressureMetrics
Sourcepub fn new(labels: &ComponentLabels) -> Self
pub fn new(labels: &ComponentLabels) -> Self
Resolve all backpressure handles.
Sourcepub fn pause_started(&self)
pub fn pause_started(&self)
Record a pause transition.
Sourcepub fn pause_ended(&self, paused_for: Duration)
pub fn pause_ended(&self, paused_for: Duration)
Record a resume transition and the time spent paused.
Sourcepub fn set_inflight_bytes(&self, bytes: usize)
pub fn set_inflight_bytes(&self, bytes: usize)
Set the current in-flight byte budget usage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackpressureMetrics
impl !RefUnwindSafe for BackpressureMetrics
impl Send for BackpressureMetrics
impl Sync for BackpressureMetrics
impl Unpin for BackpressureMetrics
impl UnsafeUnpin for BackpressureMetrics
impl !UnwindSafe for BackpressureMetrics
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