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 drain_recommendation(self) -> PriorityDrainRecommendation
pub fn drain_recommendation(self) -> PriorityDrainRecommendation
Return a structured drain recommendation for scheduler telemetry.
Sourcepub fn record_requeue(&mut self, age_ticks: u32)
pub fn record_requeue(&mut self, age_ticks: u32)
Record one requeue event.
Sourcepub fn try_record_requeue(&mut self, age_ticks: u32) -> Result<(), BackendError>
pub fn try_record_requeue(&mut self, age_ticks: u32) -> Result<(), BackendError>
Record one requeue event with exact overflow reporting.
§Errors
Returns BackendError when the requeue counter would overflow.
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.
Sourcepub fn try_record_aged_promotion(
&mut self,
age_ticks: u32,
) -> Result<(), BackendError>
pub fn try_record_aged_promotion( &mut self, age_ticks: u32, ) -> Result<(), BackendError>
Record one priority-aging promotion with exact overflow reporting.
§Errors
Returns BackendError when the aged-promotion counter would overflow.
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 moreimpl Copy for PriorityRequeueAccounting
Source§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
impl Eq for PriorityRequeueAccounting
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 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.