#[non_exhaustive]pub enum ConcurrencyControlType {
Unlimited,
Task,
Argument,
None,
}Expand description
Concurrency control strategy for a task.
Determines how concurrent invocations of the same task are handled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unlimited
No concurrency restrictions
Task
Only one invocation per (task_id, key_args) at a time
Argument
Only one invocation per exact argument set
None
No concurrent invocations allowed at all
Trait Implementations§
Source§impl Clone for ConcurrencyControlType
impl Clone for ConcurrencyControlType
Source§fn clone(&self) -> ConcurrencyControlType
fn clone(&self) -> ConcurrencyControlType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConcurrencyControlType
impl Debug for ConcurrencyControlType
Source§impl Default for ConcurrencyControlType
impl Default for ConcurrencyControlType
Source§impl<'de> Deserialize<'de> for ConcurrencyControlType
impl<'de> Deserialize<'de> for ConcurrencyControlType
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
Source§impl Display for ConcurrencyControlType
impl Display for ConcurrencyControlType
Source§impl FromStr for ConcurrencyControlType
impl FromStr for ConcurrencyControlType
Source§impl PartialEq for ConcurrencyControlType
impl PartialEq for ConcurrencyControlType
Source§impl Serialize for ConcurrencyControlType
impl Serialize for ConcurrencyControlType
impl Copy for ConcurrencyControlType
impl Eq for ConcurrencyControlType
impl StructuralPartialEq for ConcurrencyControlType
Auto Trait Implementations§
impl Freeze for ConcurrencyControlType
impl RefUnwindSafe for ConcurrencyControlType
impl Send for ConcurrencyControlType
impl Sync for ConcurrencyControlType
impl Unpin for ConcurrencyControlType
impl UnsafeUnpin for ConcurrencyControlType
impl UnwindSafe for ConcurrencyControlType
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
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§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.