pub struct PriorityBump<T> { /* private fields */ }Expand description
Allows the priority of the DeadlineQueue to be temporarily bumped.
The priority is bumped for as long as this object is alive. This is useful in situations where, despite having a deadline we may never want the priority to fall too low.
This could be because a user started watching the process, a shutdown sequence was initiated, etc.
Trait Implementations§
Source§impl<T: Debug> Debug for PriorityBump<T>
impl<T: Debug> Debug for PriorityBump<T>
Auto Trait Implementations§
impl<T> Freeze for PriorityBump<T>
impl<T> !RefUnwindSafe for PriorityBump<T>
impl<T> !Send for PriorityBump<T>
impl<T> !Sync for PriorityBump<T>
impl<T> Unpin for PriorityBump<T>
impl<T> !UnwindSafe for PriorityBump<T>
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