pub struct FairWorkTurn { /* private fields */ }Expand description
One process-fair work turn. Dropping an unfinished turn reconciles the scheduler with zero work and without requeueing, so task cancellation can never strand the global scheduler in an in-flight state.
Implementations§
Source§impl FairWorkTurn
impl FairWorkTurn
pub fn allowance(&self) -> FairBudget
pub fn complete( self, used: FairBudget, still_ready: bool, ) -> Result<(), FairnessError>
Trait Implementations§
Source§impl Debug for FairWorkTurn
impl Debug for FairWorkTurn
Source§impl Drop for FairWorkTurn
impl Drop for FairWorkTurn
Auto Trait Implementations§
impl Freeze for FairWorkTurn
impl RefUnwindSafe for FairWorkTurn
impl Send for FairWorkTurn
impl Sync for FairWorkTurn
impl Unpin for FairWorkTurn
impl UnsafeUnpin for FairWorkTurn
impl UnwindSafe for FairWorkTurn
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