pub enum DispatchOp<State, Action> {
Dispatch(State, Option<Effect<Action>>),
Keep(State, Option<Effect<Action>>),
}Expand description
determine if the action should be dispatched or not
Variants§
Dispatch(State, Option<Effect<Action>>)
Dispatch new state
Keep(State, Option<Effect<Action>>)
Keep new state but do not dispatch
Auto Trait Implementations§
impl<State, Action> Freeze for DispatchOp<State, Action>
impl<State, Action> !RefUnwindSafe for DispatchOp<State, Action>
impl<State, Action> Send for DispatchOp<State, Action>
impl<State, Action> !Sync for DispatchOp<State, Action>
impl<State, Action> Unpin for DispatchOp<State, Action>
impl<State, Action> !UnwindSafe for DispatchOp<State, Action>
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