pub enum DispatchBackpressurePolicy {
RejectNew,
DropOldest,
}Expand description
Overflow handling strategy applied when UiDispatcher reaches its configured capacity.
Variants§
RejectNew
Reject incoming submissions with DispatchError::QueueFull once capacity is reached.
DropOldest
Evict the oldest lowest-priority queued task to admit the incoming submission.
Trait Implementations§
Source§impl Clone for DispatchBackpressurePolicy
impl Clone for DispatchBackpressurePolicy
impl Copy for DispatchBackpressurePolicy
Source§impl Debug for DispatchBackpressurePolicy
impl Debug for DispatchBackpressurePolicy
Source§impl Default for DispatchBackpressurePolicy
impl Default for DispatchBackpressurePolicy
impl Eq for DispatchBackpressurePolicy
Source§impl Hash for DispatchBackpressurePolicy
impl Hash for DispatchBackpressurePolicy
Source§impl Ord for DispatchBackpressurePolicy
impl Ord for DispatchBackpressurePolicy
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DispatchBackpressurePolicy
impl PartialOrd for DispatchBackpressurePolicy
impl StructuralPartialEq for DispatchBackpressurePolicy
Auto Trait Implementations§
impl Forget for DispatchBackpressurePolicy
impl Freeze for DispatchBackpressurePolicy
impl Move for DispatchBackpressurePolicy
impl RefUnwindSafe for DispatchBackpressurePolicy
impl Send for DispatchBackpressurePolicy
impl Sync for DispatchBackpressurePolicy
impl Unpin for DispatchBackpressurePolicy
impl UnsafeUnpin for DispatchBackpressurePolicy
impl UnwindSafe for DispatchBackpressurePolicy
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