View Source ExSTUN.Message.Method (ex_stun v0.2.0)
STUN Message Method
Summary
Functions
Converts method from an integer into an atom.
Converts method from an atom into an integer.
Types
@type t() ::
:binding
| :allocate
| :refresh
| :send
| :data
| :create_permission
| :channel_bind
Functions
@spec from_value(non_neg_integer()) :: {:ok, t()} | {:error, :unknown_method}
Converts method from an integer into an atom.
Converts method from an atom into an integer.