pub enum RuntimeWorkDisposition {
AdmitAll,
CoalesceVisibleDeferBackground,
DeferBackgroundDropBestEffort,
ReadmitAfterHysteresis,
FailFastStrictGuarantee,
}Expand description
Work disposition allowed by the current runtime mode.
Variants§
AdmitAll
Admit all work normally.
CoalesceVisibleDeferBackground
Preserve strict work; coalesce visible work and slow background work.
DeferBackgroundDropBestEffort
Preserve strict work; defer background work and drop best-effort work.
ReadmitAfterHysteresis
Re-admit deferred work after the hysteresis window closed.
FailFastStrictGuarantee
Stop optimistic degradation because a strict guarantee failed.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeWorkDisposition
impl Clone for RuntimeWorkDisposition
Source§fn clone(&self) -> RuntimeWorkDisposition
fn clone(&self) -> RuntimeWorkDisposition
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 moreimpl Copy for RuntimeWorkDisposition
Source§impl Debug for RuntimeWorkDisposition
impl Debug for RuntimeWorkDisposition
impl Eq for RuntimeWorkDisposition
Source§impl PartialEq for RuntimeWorkDisposition
impl PartialEq for RuntimeWorkDisposition
Source§fn eq(&self, other: &RuntimeWorkDisposition) -> bool
fn eq(&self, other: &RuntimeWorkDisposition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeWorkDisposition
Auto Trait Implementations§
impl Freeze for RuntimeWorkDisposition
impl RefUnwindSafe for RuntimeWorkDisposition
impl Send for RuntimeWorkDisposition
impl Sync for RuntimeWorkDisposition
impl Unpin for RuntimeWorkDisposition
impl UnsafeUnpin for RuntimeWorkDisposition
impl UnwindSafe for RuntimeWorkDisposition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.