pub struct FairPriority { /* private fields */ }Expand description
Strict priority with anti-starvation: after budget consecutive items
from the top-priority band, serve one item from the lowest non-empty
band if any is waiting.
The default (FairPriority::default) uses budget = 16, which is a
reasonable middle ground for most workloads. Lower the budget if your
low-priority work is latency-sensitive; raise it if high-priority
throughput dominates.
Implementations§
Trait Implementations§
Source§impl Clone for FairPriority
impl Clone for FairPriority
Source§fn clone(&self) -> FairPriority
fn clone(&self) -> FairPriority
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 FairPriority
impl Debug for FairPriority
Source§impl Default for FairPriority
impl Default for FairPriority
Source§impl<Ctx> Scheduler<Ctx> for FairPriority
impl<Ctx> Scheduler<Ctx> for FairPriority
impl Copy for FairPriority
Auto Trait Implementations§
impl Freeze for FairPriority
impl RefUnwindSafe for FairPriority
impl Send for FairPriority
impl Sync for FairPriority
impl Unpin for FairPriority
impl UnsafeUnpin for FairPriority
impl UnwindSafe for FairPriority
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