stun_codec/rfc5766/
methods.rs

1//! Methods that are defined in [RFC 5766 -- 13. New STUN Methods].
2//!
3//! [RFC 5766 -- 13. New STUN Methods]: https://tools.ietf.org/html/rfc5766#section-13
4use crate::Method;
5
6/// Allocate method.
7///
8/// Only request/response semantics defined.
9pub const ALLOCATE: Method = Method(0x003);
10
11/// Reference method.
12///
13/// Only request/response semantics defined.
14pub const REFRESH: Method = Method(0x004);
15
16/// Send method.
17///
18/// Only indication semantics defined.
19pub const SEND: Method = Method(0x006);
20
21/// Data method.
22///
23/// only indication semantics defined.
24pub const DATA: Method = Method(0x007);
25
26/// CreatePermission method.
27///
28/// Only request/response semantics defined.
29pub const CREATE_PERMISSION: Method = Method(0x008);
30
31/// ChannelBind method.
32///
33/// Only request/response semantics defined.
34pub const CHANNEL_BIND: Method = Method(0x009);