1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (C) 2025 Matthew Waters <matthew@centricular.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Module for TURN message types in addition to those specified by STUN.
use Method;
/// The value of the Allocate message type. Can only be used in a request message.
pub const ALLOCATE: Method = new;
/// The value of the Refresh message type. Can only be used in a request message.
pub const REFRESH: Method = new;
/// The value of the Send message type. Can only be used in an indication message.
pub const SEND: Method = new;
/// The value of the Data message type. Can only be used in an indication message.
pub const DATA: Method = new;
/// The value of the CreatePermission message type. Can only be used in request message.
pub const CREATE_PERMISSION: Method = new;
/// The value of the ChannelBind message type. Can only be used in a request message.
pub const CHANNEL_BIND: Method = new;
/// The value of the Connect message type. Can only be used in a request message.
pub const CONNECT: Method = new;
/// The value of the ConnectionBind message type. Can only be used in a request message.
pub const CONNECTION_BIND: Method = new;
/// The value of the ConnectionAttempt message type. Can only be used in a request message.
pub const CONNECTION_ATTEMPT: Method = new;
pub