Function steno::new_action_noop_undo
source · pub fn new_action_noop_undo<Name, UserType, ActionFuncType, ActionFuncOutput>(
name: Name,
f: ActionFuncType
) -> Arc<dyn Action<UserType>>where
Name: AsRef<str>,
UserType: SagaType,
for<'c> ActionFuncType: ActionFn<'c, UserType, Output = ActionFuncResult<ActionFuncOutput, ActionError>>,
ActionFuncOutput: ActionData,
Expand description
Given a function f
, return an ActionFunc
that uses f
as the action and
provides a no-op undo function (which does nothing and always succeeds).