pub struct BackpressureSnapshot {
pub queue_depth: usize,
pub pending_io: usize,
pub memory_bytes: u64,
pub memory_total: u64,
pub level: BackpressureLevel,
}Expand description
Snapshot of backpressure metrics
Fields§
§queue_depth: usize§pending_io: usize§memory_bytes: u64§memory_total: u64§level: BackpressureLevelImplementations§
Source§impl BackpressureSnapshot
impl BackpressureSnapshot
Sourcepub fn memory_pct(&self) -> u8
pub fn memory_pct(&self) -> u8
Memory usage percentage
Trait Implementations§
Source§impl Clone for BackpressureSnapshot
impl Clone for BackpressureSnapshot
Source§fn clone(&self) -> BackpressureSnapshot
fn clone(&self) -> BackpressureSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackpressureSnapshot
impl RefUnwindSafe for BackpressureSnapshot
impl Send for BackpressureSnapshot
impl Sync for BackpressureSnapshot
impl Unpin for BackpressureSnapshot
impl UnsafeUnpin for BackpressureSnapshot
impl UnwindSafe for BackpressureSnapshot
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