pub struct EffectPolicy {
pub mode: EffectMode,
pub timeout: Option<Duration>,
pub dedupe_key: Option<String>,
pub cancel_scope: Option<String>,
}Expand description
Execution policy for an effect.
Fields§
§mode: EffectModeWhether this effect blocks later effects from running.
timeout: Option<Duration>Optional maximum time budget for the effect.
dedupe_key: Option<String>Optional key used to collapse duplicate queued effects.
cancel_scope: Option<String>Optional cancellation group for replacing stale concurrent work.
Trait Implementations§
Source§impl Clone for EffectPolicy
impl Clone for EffectPolicy
Source§fn clone(&self) -> EffectPolicy
fn clone(&self) -> EffectPolicy
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 EffectPolicy
impl Debug for EffectPolicy
Source§impl Default for EffectPolicy
impl Default for EffectPolicy
Source§impl PartialEq for EffectPolicy
impl PartialEq for EffectPolicy
impl Eq for EffectPolicy
impl StructuralPartialEq for EffectPolicy
Auto Trait Implementations§
impl Freeze for EffectPolicy
impl RefUnwindSafe for EffectPolicy
impl Send for EffectPolicy
impl Sync for EffectPolicy
impl Unpin for EffectPolicy
impl UnwindSafe for EffectPolicy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more