Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 56) sorted by relevance

123

/webrtc/constraints/src/capability/
H A Dvalue.rs23 pub value: T, field
27 fn from(value: T) -> Self { in from()
28 Self { value } in from()
33 fn from(value: &str) -> Self { in from()
35 value: value.to_owned(), in from()
50 let actual = subject.value.as_str(); in from_str()
69 value: "string".to_owned(), in customized()
H A Dvalue_sequence.rs25 fn from(value: T) -> Self { in from()
27 values: vec![value], in from()
59 fn value() { in value() function
/webrtc/webrtc/src/peer_connection/sdp/
H A Dsdp_test.rs276 value: None, in test_track_details_from_sdp()
297 value: None, in test_track_details_from_sdp()
318 value: None, in test_track_details_from_sdp()
347 value: None, in test_track_details_from_sdp()
368 value: None, in test_track_details_from_sdp()
428 value: None, in test_track_details_from_sdp()
449 value: None, in test_track_details_from_sdp()
489 value: None, in test_have_application_media_section()
739 if let Some(value) = &a.value { in test_populate_sdp()
833 if let Some(value) = &a.value { in test_populate_sdp()
[all …]
H A Dmod.rs101 if let Some(value) = &attr.value { in track_details_from_sdp()
138 if let Some(value) = &attr.value { in track_details_from_sdp()
151 if let Some(value) = &attr.value { in track_details_from_sdp()
244 if let Some(value) = &attr.value { in get_rids()
261 if let Some(value) = &a.value { in add_candidates_to_media_descriptions()
262 if &marshaled == value { in add_candidates_to_media_descriptions()
311 value: 9, in add_data_media_section()
473 value: 0, in add_transceiver_sdp()
509 value: rtp_extension.id, in add_transceiver_sdp()
664 *value = value.clone() + " " + mid_value; in populate_sdp()
[all …]
/webrtc/sctp/src/param/
H A Dparam_unknown.rs16 value: Bytes, field
21 write!(f, "ParamUnknown( {} {:?} )", self.header(), self.value) in fmt()
31 value_length: self.value.len() as u16, in header()
44 let value = raw.slice(PARAM_HEADER_LENGTH..PARAM_HEADER_LENGTH + header.value_length()); in unmarshal() localVariable
47 value, in unmarshal()
53 buf.extend(self.value.clone()); in marshal_to()
58 self.value.len() in value_length()
/webrtc/constraints/src/constraint/
H A Dvalue_range.rs424 value: $value:expr
448 "min": $value,
458 "max": $value,
468 "exact": $value,
478 "ideal": $value,
486 …ValueRangeConstraint::default().min($value.to_owned()).max($value.to_owned()).exact($value.to_owne…
488 "min": $value,
489 "max": $value,
490 "exact": $value,
503 value: 42.0
[all …]
H A Dvalue.rs352 value: $value:expr
366 let subject = Subject::Bare($value.to_owned());
367 let json = serde_json::json!($value);
374 … let subject = Subject::Constraint(ResolvedValueConstraint::default().exact($value.to_owned()));
376 "exact": $value,
386 "ideal": $value,
394 …ubject::Constraint(ResolvedValueConstraint::default().exact($value.to_owned()).ideal($value.to_own…
396 "exact": $value,
397 "ideal": $value,
409 value: true
[all …]
/webrtc/sdp/src/description/
H A Dmedia.rs66 return Some(a.value.as_ref().map(|s| s.as_ref())); in attribute()
79 value: 9, in new_jsep_media_description()
113 pub fn with_value_attribute(mut self, key: String, value: String) -> Self { in with_value_attribute()
114 self.attributes.push(Attribute::new(key, Some(value))); in with_value_attribute()
119 pub fn with_fingerprint(self, algorithm: String, value: String) -> Self { in with_fingerprint()
170 pub fn with_candidate(self, value: String) -> Self { in with_candidate()
171 self.with_value_attribute("candidate".to_string(), value) in with_candidate()
193 value: EXT_MAP_VALUE_TRANSPORT_CC_KEY, in with_transport_cc_extmap()
208 pub value: isize, field
215 write!(f, "{}/{}", self.value, range) in fmt()
[all …]
H A Dsession.rs154 for value in &self.offsets { in fmt()
362 return a.value.as_ref(); in attribute()
913 let version = value.parse::<u32>()?; in unmarshal_protocol_version()
969 lexer.desc.session_name = value; in unmarshal_session_name()
993 lexer.desc.email_address = Some(value); in unmarshal_email()
1001 lexer.desc.phone_number = Some(value); in unmarshal_phone()
1187 value: None, in unmarshal_session_attribute()
1252 value: port_value, in unmarshal_media_description()
1335 value: None, in unmarshal_media_attribute()
1350 let val = value.as_bytes(); in parse_time_units()
[all …]
H A Dcommon.rs71 pub value: Option<String>, field
76 if let Some(value) = &self.value { in fmt()
77 write!(f, "{}:{}", self.key, value) in fmt()
86 pub fn new(key: String, value: Option<String>) -> Self { in new()
87 Attribute { key, value } in new()
/webrtc/sctp/src/chunk/
H A Dchunk_unknown.rs10 value: Bytes, field
15 write!(f, "ChunkUnknown( {} {:?} )", self.hdr, self.value) in fmt()
33 self.value.len() in value_length()
38 buf.extend(&self.value); in marshal_to()
50 value: raw.slice(CHUNK_HEADER_SIZE..CHUNK_HEADER_SIZE + len), in unmarshal()
/webrtc/sdp/src/extmap/
H A Dmod.rs29 pub value: isize, field
37 let mut output = format!("{}", self.value); in fmt()
59 value: Some(self.to_string()), in convert()
78 let value = valdir[0].parse::<isize>()?; in unmarshal() localVariable
79 if !(1..=246).contains(&value) { in unmarshal()
106 value, in unmarshal()
/webrtc/sdp/src/lexer/
H A Dmod.rs46 let mut value = String::new(); in read_value() localVariable
47 let num_bytes = reader.read_line(&mut value)?; in read_value()
48 Ok((value.trim().to_string(), num_bytes)) in read_value()
60 pub fn key_value_build(key: &str, value: Option<&String>) -> String { in key_value_build()
61 if let Some(val) = value { in key_value_build()
/webrtc/stun/src/
H A Daddr.rs100 let mut value = vec![0u8; 4]; in add_to_as() localVariable
102 value[0..2].copy_from_slice(&family.to_be_bytes()); in add_to_as()
103 value[2..4].copy_from_slice(&self.port.to_be_bytes()); in add_to_as()
106 IpAddr::V4(ipv4) => value.extend_from_slice(&ipv4.octets()), in add_to_as()
107 IpAddr::V6(ipv6) => value.extend_from_slice(&ipv6.octets()), in add_to_as()
110 m.add(t, &value); in add_to_as()
H A Dmessage.rs191 let value = &mut buf[ATTRIBUTE_HEADER_SIZE..]; in add() localVariable
192 value.copy_from_slice(v); // V in add()
197 value: value.to_vec(), // V in add()
246 self.add(a.typ, &a.value); in write_attributes()
337 a.value = b[..a_l].to_vec(); in decode()
400 Ok(v.value) in get()
574 pub fn value(&self) -> u16 { in value() method
608 pub fn read_value(&mut self, value: u16) { in read_value()
611 let c0 = (value >> CLASS_C0SHIFT) & C0BIT; in read_value()
612 let c1 = (value >> CLASS_C1SHIFT) & C1BIT; in read_value()
[all …]
H A Derror_code.rs45 let mut value: Vec<u8> = Vec::with_capacity(ERROR_CODE_REASON_MAX_B); in add_to() localVariable
49 value.extend_from_slice(&[0, 0]); in add_to()
50 value.push(class); // [ERROR_CODE_CLASS_BYTE] in add_to()
51 value.push(number); //[ERROR_CODE_NUMBER_BYTE] = in add_to()
52 value.extend_from_slice(&self.reason); //[ERROR_CODE_REASON_START:] in add_to()
54 m.add(ATTR_ERROR_CODE, &value); in add_to()
H A Dxoraddr.rs123 let mut value = vec![0; 32 + 128]; in add_to_as() localVariable
128 value[0..2].copy_from_slice(&family.to_be_bytes()); in add_to_as()
129 value[2..4].copy_from_slice(&(self.port ^ (MAGIC_COOKIE >> 16) as u16).to_be_bytes()); in add_to_as()
130 xor_bytes(&mut value[4..4 + ip_len], &ip, &xor_value); in add_to_as()
131 m.add(t, &value[..4 + ip_len]); in add_to_as()
H A Dattributes.rs88 pub fn value(&self) -> u16 { in value() method
165 pub value: Vec<u8>, field
170 write!(f, "{}: {:?}", self.typ, self.value) in fmt()
178 m.add(self.typ, &self.value); in add_to()
/webrtc/webrtc/src/peer_connection/policy/
H A Dsdp_semantics.rs79 for (value, expected_string) in tests { in test_sdp_semantics_string()
80 assert_eq!(value.to_string(), expected_string); in test_sdp_semantics_string()
97 if let Some(value) = &attr.value { in extract_ssrc_list()
98 let fields: Vec<&str> = value.split_whitespace().collect(); in extract_ssrc_list()
/webrtc/util/src/sync/
H A Dmod.rs9 pub fn new(value: T) -> Self { in new()
10 Self(sync::Mutex::new(value)) in new()
50 pub fn new(value: T) -> Self { in new()
51 Self(sync::RwLock::new(value)) in new()
/webrtc/rtp/src/extension/video_orientation_extension/
H A Dmod.rs106 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
107 match value { in try_from()
120 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
121 match value { in try_from()
/webrtc/stun/src/message/
H A Dmessage_test.rs63 let b = input.value(); in test_message_type_value()
128 let v = test.value(); in test_message_type_read_write_value()
213 value: vec![1, 2], in test_message_attr_length_less_than_header()
243 value: vec![1, 2, 3, 4], in test_message_attr_size_less_than_length()
347 value: vec![0x1, 0x2], in test_attribute_equal()
352 value: vec![0x1, 0x2], in test_attribute_equal()
385 value: vec![0x1, 0x3], in test_attribute_equal()
398 value: vec![0x1, 0x2], in test_message_equal()
446 value: vec![0x1], in test_message_equal()
461 value: vec![0x1, 0x1], in test_message_equal()
[all …]
/webrtc/webrtc/src/dtls_transport/
H A Ddtls_role.rs61 if let Some(value) = &attribute.value { in from()
62 match value.as_str() { in from()
/webrtc/webrtc/src/rtp_transceiver/fmtp/
H A Dmod.rs41 let value = if pp.len() > 1 { in parse() localVariable
46 parameters.insert(key, value); in parse()
/webrtc/ice/src/url/
H A Dmod.rs192 if let Some((key, value)) = q_args.next() { in parse_url()
194 let proto: ProtoType = value.as_ref().into(); in parse_url()
210 if let Some((key, value)) = q_args.next() { in parse_url()
212 let proto: ProtoType = value.as_ref().into(); in parse_url()

123