Membrane Core v0.1.0 Membrane.Mixins.CallbackHandler behaviour View Source

Behaviour for module that delegates its job to the other module via callbacks. It also delivers the default implementation of logic that handles the results of callbacks.

Link to this section Summary

Link to this section Types

Link to this type callback_return_t(action_t, internal_state_t) View Source
callback_return_t(action_t, internal_state_t) ::
  {:ok, internal_state_t}
  | {{:ok, [action_t]}, internal_state_t}
  | {{:error, any()}, internal_state_t}

Link to this section Callbacks

Link to this callback callback_handler_warn_error(arg0, any, any) View Source (optional)
callback_handler_warn_error(String.t(), any(), any()) :: {:error, any()}
Link to this callback handle_action(any, atom, any, any) View Source
handle_action(any(), atom(), any(), any()) ::
  {:ok, any()} | {:error, any()}