View Source ExSTUN.Message.Method (ex_stun v0.1.0)
STUN Message Method
Link to this section Summary
Functions
Converts method from an integer into an atom.
Converts method from an atom into an integer.
Link to this section Types
@type t() ::
:binding
| :allocate
| :refresh
| :send
| :data
| :create_permission
| :channel_bind
Link to this section 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.