pub enum WaitStrategy {
WaitForever,
WaitForQuota(usize),
WaitDuration(Duration),
WaitQuotaOrDuration {
quota: usize,
duration: Duration,
},
}
Expand description
Wait strategy for concurrent workflow execution
Variants§
WaitForever
Execute all workflows to completion
WaitForQuota(usize)
Complete a specific number of workflows, then cancel the rest
WaitDuration(Duration)
Execute workflows within a time limit
WaitQuotaOrDuration
Complete quota OR wait for duration, whichever comes first
Trait Implementations§
Source§impl Clone for WaitStrategy
impl Clone for WaitStrategy
Source§fn clone(&self) -> WaitStrategy
fn clone(&self) -> WaitStrategy
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 moreAuto Trait Implementations§
impl Freeze for WaitStrategy
impl RefUnwindSafe for WaitStrategy
impl Send for WaitStrategy
impl Sync for WaitStrategy
impl Unpin for WaitStrategy
impl UnwindSafe for WaitStrategy
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