Machinist.Transition behaviour (Machinist v0.4.1) 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}