pub enum OnConcurrencyLimit {
Queue,
Fail,
}Expand description
What a run does when its concurrency limit is reached when a worker picks it up. queue (default) re-queues it to a later slot, fail ends it immediately as failed.
Variants§
Trait Implementations§
Source§impl Clone for OnConcurrencyLimit
impl Clone for OnConcurrencyLimit
impl Copy for OnConcurrencyLimit
Source§impl Debug for OnConcurrencyLimit
impl Debug for OnConcurrencyLimit
Source§impl Default for OnConcurrencyLimit
impl Default for OnConcurrencyLimit
Source§fn default() -> OnConcurrencyLimit
fn default() -> OnConcurrencyLimit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OnConcurrencyLimit
impl<'de> Deserialize<'de> for OnConcurrencyLimit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OnConcurrencyLimit
Source§impl Hash for OnConcurrencyLimit
impl Hash for OnConcurrencyLimit
Source§impl Ord for OnConcurrencyLimit
impl Ord for OnConcurrencyLimit
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 PartialEq for OnConcurrencyLimit
impl PartialEq for OnConcurrencyLimit
Source§impl PartialOrd for OnConcurrencyLimit
impl PartialOrd for OnConcurrencyLimit
Source§impl Serialize for OnConcurrencyLimit
impl Serialize for OnConcurrencyLimit
impl StructuralPartialEq for OnConcurrencyLimit
Auto Trait Implementations§
impl Forget for OnConcurrencyLimit
impl Freeze for OnConcurrencyLimit
impl RefUnwindSafe for OnConcurrencyLimit
impl Send for OnConcurrencyLimit
impl Sync for OnConcurrencyLimit
impl Unpin for OnConcurrencyLimit
impl UnsafeUnpin for OnConcurrencyLimit
impl UnwindSafe for OnConcurrencyLimit
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