Machinist.Transition behaviour (Machinist v0.2.0) View Source

Machinist.Transition module behaviour

Link to this section Summary

Link to this section Callbacks

Specs

transit(struct(), [{:event, String.t()}]) ::
  {:ok, struct()} | {:error, :not_allowed}