pub struct PriorityRequeueAccounting {
pub requeue_count: u64,
pub aged_promotions: u64,
pub max_priority_age: u32,
}Expand description
Requeue and aging counters produced by priority-aware schedulers.
Fields§
§requeue_count: u64Number of slots requeued due to contention or quota pressure.
aged_promotions: u64Number of slots promoted because their priority age crossed policy.
max_priority_age: u32Largest age observed for any queued priority slot.
Implementations§
Source§impl PriorityRequeueAccounting
impl PriorityRequeueAccounting
Sourcepub fn record_requeue(&mut self, age_ticks: u32)
pub fn record_requeue(&mut self, age_ticks: u32)
Record one requeue event.
Sourcepub fn record_aged_promotion(&mut self, age_ticks: u32)
pub fn record_aged_promotion(&mut self, age_ticks: u32)
Record one priority-aging promotion.
Trait Implementations§
Source§impl Clone for PriorityRequeueAccounting
impl Clone for PriorityRequeueAccounting
Source§fn clone(&self) -> PriorityRequeueAccounting
fn clone(&self) -> PriorityRequeueAccounting
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 moreSource§impl Debug for PriorityRequeueAccounting
impl Debug for PriorityRequeueAccounting
Source§impl Default for PriorityRequeueAccounting
impl Default for PriorityRequeueAccounting
Source§fn default() -> PriorityRequeueAccounting
fn default() -> PriorityRequeueAccounting
Returns the “default value” for a type. Read more
Source§impl PartialEq for PriorityRequeueAccounting
impl PartialEq for PriorityRequeueAccounting
Source§fn eq(&self, other: &PriorityRequeueAccounting) -> bool
fn eq(&self, other: &PriorityRequeueAccounting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PriorityRequeueAccounting
impl Eq for PriorityRequeueAccounting
impl StructuralPartialEq for PriorityRequeueAccounting
Auto Trait Implementations§
impl Freeze for PriorityRequeueAccounting
impl RefUnwindSafe for PriorityRequeueAccounting
impl Send for PriorityRequeueAccounting
impl Sync for PriorityRequeueAccounting
impl Unpin for PriorityRequeueAccounting
impl UnsafeUnpin for PriorityRequeueAccounting
impl UnwindSafe for PriorityRequeueAccounting
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.