pub struct RingOccupancy {
pub empty: u32,
pub published: u32,
pub claimed: u32,
pub done: u32,
pub wait_io: u32,
pub yield_count: u32,
pub requeue: u32,
pub fault: u32,
pub unknown: u32,
}Expand description
Slot occupancy counts across the ring.
Fields§
§empty: u32Number of empty slots.
published: u32Number of published slots.
claimed: u32Number of claimed slots.
done: u32Number of done slots.
wait_io: u32Number of slots waiting for IO.
yield_count: u32Number of slots yielded.
requeue: u32Number of requeued slots.
fault: u32Number of faulted slots.
unknown: u32Number of slots with unrecognized raw status values.
Implementations§
Source§impl RingOccupancy
impl RingOccupancy
Sourcepub fn total_slots(&self) -> u32
pub fn total_slots(&self) -> u32
Total slots represented by this occupancy snapshot.
Sourcepub fn queue_depth(&self) -> u32
pub fn queue_depth(&self) -> u32
Host-visible active queue depth: all non-empty slots that are not done.
Trait Implementations§
Source§impl Clone for RingOccupancy
impl Clone for RingOccupancy
Source§fn clone(&self) -> RingOccupancy
fn clone(&self) -> RingOccupancy
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 moreimpl Copy for RingOccupancy
Source§impl Debug for RingOccupancy
impl Debug for RingOccupancy
Source§impl Default for RingOccupancy
impl Default for RingOccupancy
Source§fn default() -> RingOccupancy
fn default() -> RingOccupancy
Returns the “default value” for a type. Read more
impl Eq for RingOccupancy
Source§impl PartialEq for RingOccupancy
impl PartialEq for RingOccupancy
Source§fn eq(&self, other: &RingOccupancy) -> bool
fn eq(&self, other: &RingOccupancy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RingOccupancy
Auto Trait Implementations§
impl Freeze for RingOccupancy
impl RefUnwindSafe for RingOccupancy
impl Send for RingOccupancy
impl Sync for RingOccupancy
impl Unpin for RingOccupancy
impl UnsafeUnpin for RingOccupancy
impl UnwindSafe for RingOccupancy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.