stun_coder/header/
message_method.rs

1#[derive(Debug, Copy, Clone, FromPrimitive, Ord, PartialOrd, Eq, PartialEq)]
2/// [STUN message method](https://tools.ietf.org/html/rfc5389#section-18.1)
3///
4/// A STUN method is a hex number in the range 0x000 - 0xFFF.  The
5/// encoding of STUN method into a STUN message is described in
6/// Section 6.
7
8/// The initial STUN methods are:
9
10/// 0x000: (Reserved)
11/// 0x001: Binding
12/// 0x002: (Reserved; was SharedSecret)
13
14/// STUN methods in the range 0x000 - 0x7FF are assigned by IETF Review
15/// [RFC5226](https://tools.ietf.org/html/rfc5226).  STUN methods in the range 0x800 - 0xFFF are assigned by
16/// Designated Expert [RFC5226](https://tools.ietf.org/html/rfc5226).  The responsibility of the expert is to
17/// verify that the selected codepoint(s) are not in use and that the
18/// request is not for an abnormally large number of codepoints.
19/// Technical review of the extension itself is outside the scope of the
20/// designated expert responsibility.
21pub enum StunMessageMethod {
22    /// STUN binding request method
23    BindingRequest = 0b0000_0000_0000_0001,
24}