alef 0.30.10

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
  @doc """
  Register a {{ trait_name }} plugin with a GenServer PID and name.

  The GenServer should dispatch `{:trait_call, ...}` messages to a module that
  implements the `{{ behaviour_module }}` behaviour.
  """
  @spec {{ func_name }}(pid(), String.t()) :: :ok | :error
  def {{ func_name }}(genserver_pid, plugin_name) do
    {{ native_mod }}.{{ func_name }}(genserver_pid, plugin_name)
  end