Struct EffectPolicy
pub struct EffectPolicy {
pub mode: EffectMode,
pub timeout: Option<Duration>,
}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.
Trait Implementations§
§impl Clone for EffectPolicy
impl Clone for EffectPolicy
§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 more§impl Debug for EffectPolicy
impl Debug for EffectPolicy
§impl Default for EffectPolicy
impl Default for EffectPolicy
§fn default() -> EffectPolicy
fn default() -> EffectPolicy
Returns the “default value” for a type. Read more
§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