Searched refs:AttrType (Results 1 – 9 of 9) sorted by relevance
| /webrtc/stun/src/ |
| H A D | attributes.rs | 76 impl AttrType { implementation 95 pub const ATTR_USERNAME: AttrType = AttrType(0x0006); // USERNAME 99 pub const ATTR_REALM: AttrType = AttrType(0x0014); // REALM 100 pub const ATTR_NONCE: AttrType = AttrType(0x0015); // NONCE 104 pub const ATTR_SOFTWARE: AttrType = AttrType(0x8022); // SOFTWARE 109 pub const ATTR_PRIORITY: AttrType = AttrType(0x0024); // PRIORITY 116 pub const ATTR_LIFETIME: AttrType = AttrType(0x000D); // LIFETIME 118 pub const ATTR_DATA: AttrType = AttrType(0x0013); // DATA 120 pub const ATTR_EVEN_PORT: AttrType = AttrType(0x0018); // EVEN-PORT 127 pub const ATTR_PADDING: AttrType = AttrType(0x0026); // PADDING [all …]
|
| H A D | textattrs.rs | 39 pub attr: AttrType, 77 pub fn new(attr: AttrType, text: String) -> Self { in new() argument 82 pub fn get_from_as(m: &Message, attr: AttrType) -> Result<Self> { in get_from_as()
|
| H A D | checks.rs | 7 pub fn check_size(_at: AttrType, got: usize, expected: usize) -> Result<()> { in check_size() argument 37 pub fn check_overflow(_at: AttrType, got: usize, max: usize) -> Result<()> { in check_overflow() argument
|
| H A D | uattrs.rs | 13 pub struct UnknownAttributes(pub Vec<AttrType>); 57 .push(AttrType(u16::from_be_bytes([v[first], v[first + 1]]))); in get_from()
|
| H A D | addr.rs | 66 pub fn get_from_as(&mut self, m: &Message, t: AttrType) -> Result<()> { in get_from_as() 94 pub fn add_to_as(&self, m: &mut Message, t: AttrType) -> Result<()> { in add_to_as()
|
| H A D | xoraddr.rs | 117 pub fn add_to_as(&self, m: &mut Message, t: AttrType) -> Result<()> { in add_to_as() 137 pub fn get_from_as(&mut self, m: &Message, t: AttrType) -> Result<()> { in get_from_as()
|
| H A D | message.rs | 170 pub fn add(&mut self, t: AttrType, v: &[u8]) { in add() argument 385 pub fn contains(&self, t: AttrType) -> bool { in contains() 397 pub fn get(&self, t: AttrType) -> Result<Vec<u8>> { in get()
|
| /webrtc/stun/src/message/ |
| H A D | message_test.rs | 194 m.add(AttrType(0x1), &[1, 2]); in test_message_bad_length() 214 typ: AttrType(0x1), in test_message_attr_length_less_than_header() 244 typ: AttrType(0x1), in test_message_attr_size_less_than_length() 360 typ: AttrType(0x2), in test_attribute_equal() 399 typ: AttrType(0x1), in test_message_equal() 447 typ: AttrType(0x1), in test_message_equal() 462 typ: AttrType(0x2), in test_message_equal() 497 typ: AttrType(0x1), in test_message_equal() 502 typ: AttrType(0x1), in test_message_equal() 522 typ: AttrType(0x1), in test_message_equal() [all …]
|
| /webrtc/ice/src/control/ |
| H A D | mod.rs | 18 pub fn add_to_as(self, m: &mut Message, t: AttrType) -> Result<(), stun::Error> { in add_to_as() 26 pub fn get_from_as(&mut self, m: &Message, t: AttrType) -> Result<(), stun::Error> { in get_from_as()
|