pub enum OverflowPolicy {
Wait,
Reject,
ShedLowest,
ShedOldest,
}Expand description
Behaviour when a submission would exceed queue bounds.
Variants§
Wait
Reject with a retryable Full error; the runtime parks the caller until space frees up.
Reject
Reject with Overloaded.
ShedLowest
Evict the newest pending task of the lowest class strictly below the incoming one.
ShedOldest
Evict the oldest pending Low task.
Trait Implementations§
Source§impl Clone for OverflowPolicy
impl Clone for OverflowPolicy
impl Copy for OverflowPolicy
Source§impl Debug for OverflowPolicy
impl Debug for OverflowPolicy
Source§impl Default for OverflowPolicy
impl Default for OverflowPolicy
impl Eq for OverflowPolicy
Source§impl PartialEq for OverflowPolicy
impl PartialEq for OverflowPolicy
impl StructuralPartialEq for OverflowPolicy
Auto Trait Implementations§
impl Freeze for OverflowPolicy
impl RefUnwindSafe for OverflowPolicy
impl Send for OverflowPolicy
impl Sync for OverflowPolicy
impl Unpin for OverflowPolicy
impl UnsafeUnpin for OverflowPolicy
impl UnwindSafe for OverflowPolicy
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