Struct reactive_state::ReducerResult [−][src]
pub struct ReducerResult<State, Event, Effect> { pub state: Rc<State>, pub events: Vec<Event>, pub effects: Vec<Effect>, }
Expand description
The result of a Reducer::reduce() function.
Events
s should generally be treated purely as a notification
that some subset of the state has been modified, such that
playing the events and state transitions in reverse will
result in the same application behaviour.
Effect
s are side effects invoked as a result of the action,
these may involve dispatching further actions, or modifying
some other part of the system that the store is involved with.
Effect
s are processed using Middleware
which has been added to the Store.
Fields
state: Rc<State>
events: Vec<Event>
effects: Vec<Effect>
Trait Implementations
Auto Trait Implementations
impl<State, Event, Effect> !RefUnwindSafe for ReducerResult<State, Event, Effect>
impl<State, Event, Effect> !Send for ReducerResult<State, Event, Effect>
impl<State, Event, Effect> !Sync for ReducerResult<State, Event, Effect>
impl<State, Event, Effect> Unpin for ReducerResult<State, Event, Effect> where
Effect: Unpin,
Event: Unpin,
Effect: Unpin,
Event: Unpin,
impl<State, Event, Effect> UnwindSafe for ReducerResult<State, Event, Effect> where
Effect: UnwindSafe,
Event: UnwindSafe,
State: RefUnwindSafe,
Effect: UnwindSafe,
Event: UnwindSafe,
State: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]pub fn into_opt_prop_value(self) -> Option<V>
[src]
pub fn into_opt_prop_value(self) -> Option<V>
[src]Convert self
to an optional value of a Properties
struct.
impl<T> IntoPropValue<Option<T>> for T
[src]
impl<T> IntoPropValue<Option<T>> for T
[src]pub fn into_prop_value(self) -> Option<T>
[src]
pub fn into_prop_value(self) -> Option<T>
[src]Convert self
to a value of a Properties
struct.
impl<T> IntoPropValue<T> for T
[src]
impl<T> IntoPropValue<T> for T
[src]pub fn into_prop_value(self) -> T
[src]
pub fn into_prop_value(self) -> T
[src]Convert self
to a value of a Properties
struct.
impl<T> Any for T where
T: Any,
T: Any,