pub type CandidateAction<ActionHandler, Args, State> = Action<Candidate<ActionHandler, Args, State>>;Expand description
A convenience type for an action candidate
Aliased Type§
pub struct CandidateAction<ActionHandler, Args, State> { /* private fields */ }Implementations§
Source§impl<ActionHandler, Args, State> CandidateAction<ActionHandler, Args, State>
impl<ActionHandler, Args, State> CandidateAction<ActionHandler, Args, State>
Sourcepub fn new(action: ActionHandler) -> Self
pub fn new(action: ActionHandler) -> Self
Create an Actionable [Candidate] from a given ActionHandler.
Sourcepub fn with_state(
self,
state: State,
) -> Action<Ready<ActionHandler, Args, State>>
pub fn with_state( self, state: State, ) -> Action<Ready<ActionHandler, Args, State>>
Create a new Actionable Ready from an action and a state.