BinStructOptionsInterface (bin_struct v0.2.16)
iex> defmodule SharedOptions do
...> use BinStructOptionsInterface
...>
...> @type runtime_context1 :: :context_a
...> @type runtime_context2 :: :context_b
...>
...> register_option :runtime_context1
...> register_option :runtime_context2
...>
...> end
...>
...> SharedOptions.option_runtime_context1(:context_a)
...> |> SharedOptions.option_runtime_context2(:context_b)
Summary
Functions
Registering option for option interface. Interface will be your module name.
Implementation and usage same as register_option
for BinStruct
.
See more in BinStruct.register_option/2