pub struct BackpressureMetrics { /* private fields */ }Expand description
Backpressure handles (etl_backpressure_*).
Implementations§
Source§impl BackpressureMetrics
impl BackpressureMetrics
Sourcepub fn new(labels: &ComponentLabels) -> BackpressureMetrics
pub fn new(labels: &ComponentLabels) -> BackpressureMetrics
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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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