pub struct Reaction {
pub source: &'static str,
pub effect: LiveEffect,
pub policy: EffectPolicy,
}Expand description
A policy-wrapped effect.
Fields§
§source: &'static strRule or subsystem that produced the reaction.
effect: LiveEffectRuntime effect requested by the rule.
policy: EffectPolicyExecution policy for the effect.
Implementations§
Source§impl Reaction
impl Reaction
Sourcepub fn blocking(source: &'static str, effect: LiveEffect) -> Self
pub fn blocking(source: &'static str, effect: LiveEffect) -> Self
Create a blocking reaction.
Sourcepub fn concurrent(source: &'static str, effect: LiveEffect) -> Self
pub fn concurrent(source: &'static str, effect: LiveEffect) -> Self
Create a concurrent reaction.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnwindSafe for Reaction
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