pub trait IntoHandler<S: AppState, A> {
// Required method
fn call<'a, 'b, 'c>(
&self,
state: &mut S,
action: A,
ctx: &mut ReducerContext<'a, 'b, 'c, S>,
);
}Expand description
Trait that allows both 2-argument (legacy) and 3-argument (modern) handler
functions to be used with ActionRegistry::register and
BuildCtx::bind.
Required Methods§
Sourcefn call<'a, 'b, 'c>(
&self,
state: &mut S,
action: A,
ctx: &mut ReducerContext<'a, 'b, 'c, S>,
)
fn call<'a, 'b, 'c>( &self, state: &mut S, action: A, ctx: &mut ReducerContext<'a, 'b, 'c, S>, )
Invoke the handler with the given state, action, and context.