Skip to main content

Module reducer

Module reducer 

Source

Structs§

CatchReducer
Wraps a reducer with panic recovery — default behavior matches the runtime: panics are caught and state is not reverted (see safe_reduce_update).
CombineReducers
Runs multiple reducers in order and merges their commands.
Reduce
Named inline reducer wrapping a fn pointer. Type-erased reducer wrapper for composition.
RollbackCatchReducer
Opt-in rollback — like CatchReducer, but restores the last committed state on panic via safe_reduce_rollback.

Traits§

Reducer
Composable update logic (UDF Reducer parity).

Functions§

coerce_fn
Coerce a function item to an fn pointer for use in CombineReducers.