Trait composable::Effects
source · pub trait Effects<Action>: Effects<Action = Action> + 'static { }
Expand description
Effects
are used within Reducer
s to propagate Action
s as side-effects of performing other
Action
s.
Effects
are also Schedulers
— able to apply modifiers to when (and how often) Action
s. are sent.
This is a “trait alias” (to the actual Effects
trait) to simplify
Reducer
signatures and set the lifetime to 'static
.
Object Safety§
This trait is not object safe.
Implementors§
impl<T, Action> Effects<Action> for Twhere
T: Effects<Action = Action> + 'static,
Until actual trait aliases are stabilized this work around allows the trait shown above to be used anywhere that the original trait can.