| /webrtc/constraints/src/ |
| H A D | constraint.rs | 77 String(ValueConstraint<String>), enumerator 149 fn from(bare: Vec<String>) -> Self { in from() 176 fn from(bare: String) -> Self { in from() 177 Self::String(bare.into()) in from() 190 Self::String(constraint.into()) in from() 196 Self::String(constraint) in from() 210 MediaTrackSetting::String(value) => Self::String(value.into()), in from() 289 String(ResolvedValueConstraint<String>), enumerator 347 Self::String(constraint) in from() 406 Self::String(constraint) => Self::String(constraint.into_required_only()), in into_required_only() [all …]
|
| H A D | capability.rs | 45 StringSequence(MediaTrackValueSequenceCapability<String>), 47 String(MediaTrackValueCapability<String>), enumerator 74 impl From<String> for MediaTrackCapability { 75 fn from(capability: String) -> Self { in from() 76 Self::String(capability.into()) in from() 82 let capability: String = capability.to_owned(); in from() 87 impl From<Vec<String>> for MediaTrackCapability { 88 fn from(capability: Vec<String>) -> Self { in from() 95 let capability: Vec<String> = capability.into_iter().map(|c| c.to_owned()).collect(); in from() 152 let expected = Subject::String("foo".to_owned().into()); in string() [all …]
|
| H A D | setting.rs | 25 String(String), enumerator 34 Self::String(setting) => f.write_fmt(format_args!("{setting:?}")), in fmt() 57 impl From<String> for MediaTrackSetting { 58 fn from(setting: String) -> Self { in from() 59 Self::String(setting) in from() 65 Self::String(setting.to_owned()) in from() 105 let expected = Subject::String("string".to_owned()); in string() 155 let subject = Subject::String("string".to_owned()); in string()
|
| H A D | enumerations.rs | 22 pub fn user() -> String { in user() 27 pub fn environment() -> String { in environment() 32 pub fn left() -> String { in left() 37 pub fn right() -> String { in right() 79 pub fn none() -> String { in none() 84 pub fn crop_and_scale() -> String { in crop_and_scale()
|
| /webrtc/constraints/src/algorithms/fitness_distance/value_constraint/tests/ |
| H A D | string.rs | 13 settings: String => &[Some("foo".to_owned())], 16 constraints: String => &[ 37 settings: String => &[None, Some("bar".to_owned())], 40 constraints: String => &[ResolvedValueConstraint { 62 settings: String => &[Some("foo".to_owned())], 65 constraints: String => &[ResolvedValueConstraint { 83 settings: String => &[None], 86 constraints: String => &[ 111 settings: String => &[Some("bar".to_owned())], 114 constraints: String => &[
|
| /webrtc/webrtc/src/rtp_transceiver/fmtp/generic/ |
| H A D | mod.rs | 7 fn fmtp_consist(a: &HashMap<String, String>, b: &HashMap<String, String>) -> bool { in fmtp_consist() argument 28 pub(crate) mime_type: String, 29 pub(crate) parameters: HashMap<String, String>, 51 fn parameter(&self, key: &str) -> Option<&String> { in parameter() argument
|
| /webrtc/interceptor/src/ |
| H A D | stream_info.rs | 6 pub uri: String, 13 pub id: String, 18 pub mime_type: String, 21 pub sdp_fmtp_line: String, 32 pub typ: String, 36 pub parameter: String,
|
| /webrtc/constraints/src/algorithms/fitness_distance/value_sequence_constraint/tests/ |
| H A D | string.rs | 15 settings: String => &[Some("foo".to_owned())], 18 constraints: String => &[ 39 settings: String => &[None, Some("bar".to_owned())], 42 constraints: String => &[ResolvedValueSequenceConstraint { 64 settings: String => &[Some("foo".to_owned())], 67 constraints: String => &[ResolvedValueSequenceConstraint { 85 settings: String => &[None], 88 constraints: String => &[ 113 settings: String => &[Some("blee".to_owned())], 116 constraints: String => &[
|
| /webrtc/sdp/src/description/ |
| H A D | common.rs | 5 pub type Information = String; 11 pub network_type: String, 12 pub address_type: String, 29 pub address: String, 52 pub bandwidth_type: String, 64 pub type EncryptionKey = String; 70 pub key: String, 71 pub value: Option<String>, 86 pub fn new(key: String, value: Option<String>) -> Self { in new() argument
|
| H A D | media.rs | 113 pub fn with_value_attribute(mut self, key: String, value: String) -> Self { in with_value_attribute() argument 119 pub fn with_fingerprint(self, algorithm: String, value: String) -> Self { in with_fingerprint() argument 124 pub fn with_ice_credentials(self, username: String, password: String) -> Self { in with_ice_credentials() argument 133 name: String, in with_codec() argument 136 fmtp: String, in with_codec() argument 156 cname: String, in with_media_source() argument 157 stream_label: String, in with_media_source() argument 158 label: String, in with_media_source() argument 225 pub media: String, 227 pub protos: Vec<String>, [all …]
|
| /webrtc/ice/src/rand/ |
| H A D | mod.rs | 14 pub fn generate_crypto_random_string(n: usize, runes: &[u8]) -> String { in generate_crypto_random_string() argument 17 let rand_string: String = (0..n) in generate_crypto_random_string() 31 pub fn generate_cand_id() -> String { in generate_cand_id() 40 pub fn generate_pwd() -> String { in generate_pwd() 46 pub fn generate_ufrag() -> String { in generate_ufrag()
|
| /webrtc/webrtc/src/stats/ |
| H A D | mod.rs | 146 pub id: String, 227 pub id: String, 232 pub ip: String, 237 pub url: String, 266 pub id: String, 293 pub id: String, 323 pub id: String, 357 pub id: String, 412 pub id: String, 445 pub id: String, [all …]
|
| H A D | stats_collector.rs | 9 pub(crate) reports: Mutex<HashMap<String, StatsReportType>>, 19 pub(crate) fn insert(&self, id: String, stats: StatsReportType) { in insert() argument 24 pub(crate) fn merge(&self, stats: HashMap<String, StatsReportType>) { in merge() argument 29 pub(crate) fn into_reports(self) -> HashMap<String, StatsReportType> { in into_reports() argument
|
| /webrtc/ice/src/stats/ |
| H A D | mod.rs | 13 pub local_candidate_id: String, 16 pub remote_candidate_id: String, 135 pub id: String, 151 pub ip: String, 164 pub url: String, 169 pub relay_protocol: String,
|
| /webrtc/ice/src/agent/ |
| H A D | agent_stats.rs | 14 pub local_candidate_id: String, 17 pub remote_candidate_id: String, 119 local_candidate_id: String::new(), in default() 156 pub id: String, 170 pub ip: String, 183 pub url: String, 187 pub relay_protocol: String, 201 id: String::new(), in default() 203 ip: String::new(), in default() 207 url: String::new(), in default() [all …]
|
| /webrtc/examples/examples/signal/src/ |
| H A D | lib.rs | 16 static ref SDP_CHAN_TX_MUTEX: Arc<Mutex<Option<mpsc::Sender<String>>>> = 53 pub async fn http_sdp_server(port: u16) -> mpsc::Receiver<String> { in http_sdp_server() argument 54 let (sdp_chan_tx, sdp_chan_rx) = mpsc::channel::<String>(1); in http_sdp_server() 75 pub fn must_read_stdin() -> Result<String> { in must_read_stdin() 76 let mut line = String::new(); in must_read_stdin() 90 pub fn encode(b: &str) -> String { in encode() argument 100 pub fn decode(s: &str) -> Result<String> { in decode() argument 107 let s = String::from_utf8(b)?; in decode()
|
| /webrtc/constraints/src/algorithms/fitness_distance/ |
| H A D | setting.rs | 12 pub constraint: String, 14 pub setting: Option<String>, 68 (Constraint::Bool(constraint), Setting::String(setting)) => { in fitness_distance() 93 (Constraint::String(_constraint), Setting::Bool(_setting)) => Ok(0.0), in fitness_distance() 95 (Constraint::String(_constraint), Setting::Float(_setting)) => Ok(0.0), in fitness_distance() 96 (Constraint::String(constraint), Setting::String(setting)) => { in fitness_distance() 140 MediaTrackSetting::String("string".to_owned()), in empty_constraint() 208 MediaTrackSetting::String("string".to_owned()), in non_bool_settings() 324 MediaTrackSetting::String("string".to_owned()), in incompatible_settings() 402 let settings = [MediaTrackSetting::String("setting".to_owned())]; in compatible_settings() [all …]
|
| /webrtc/turn/src/client/ |
| H A D | client_test.rs | 16 stun_serv_addr: String::new(), in create_listening_test_client() 17 turn_serv_addr: String::new(), in create_listening_test_client() 18 username: String::new(), in create_listening_test_client() 19 password: String::new(), in create_listening_test_client() 20 realm: String::new(), in create_listening_test_client() 38 turn_serv_addr: String::new(), in create_listening_test_client_with_stun_serv() 39 username: String::new(), in create_listening_test_client_with_stun_serv() 40 password: String::new(), in create_listening_test_client_with_stun_serv() 41 realm: String::new(), in create_listening_test_client_with_stun_serv() 164 realm: String::new(), in test_client_nonce_expiration() [all …]
|
| /webrtc/ice/src/candidate/ |
| H A D | candidate_base.rs | 25 pub candidate_id: String, 26 pub network: String, 27 pub address: String, 31 pub foundation: String, 37 pub(crate) id: String, 42 pub(crate) address: String, 59 pub(crate) network: String, 67 id: String::new(), in default() 72 address: String::new(), in default() 137 fn id(&self) -> String { in id() argument [all …]
|
| /webrtc/webrtc/src/ice_transport/ |
| H A D | ice_server.rs | 8 pub urls: Vec<String>, 9 pub username: String, 10 pub credential: String, 117 credential: String::new(), in test_ice_server_validate_failure() 126 credential: String::new(), in test_ice_server_validate_failure() 135 credential: String::new(), in test_ice_server_validate_failure() 157 credential: String::new(), in test_ice_server_validate_failure_err_stun_query()
|
| /webrtc/util/src/vnet/ |
| H A D | nat.rs | 62 pub(crate) name: String, 70 proto: String, // "udp" or "tcp" 71 local: String, // "<local-ip>:<local-port>" 72 mapped: String, // "<mapped-ip>:<mapped-port>" 81 proto: String::new(), // "udp" or "tcp" in default() 84 bound: String::new(), // key: "[<remote-ip>[:<remote-port>]]" in default() 93 pub(crate) name: String, 387 (String::new(), String::new()) in find_outbound_mapping() 426 (String::new(), String::new()) in find_inbound_mapping() 446 fn get_outbound_map_key(m: &Mapping) -> String { in get_outbound_map_key() argument [all …]
|
| /webrtc/constraints/src/capability/ |
| H A D | value_sequence.rs | 42 type Subject = MediaTrackValueSequenceCapability<String>; 50 let expected: Vec<String> = vec![]; in default() 64 let expected: Vec<String> = vec!["foo".to_owned()]; in value() 75 let expected: Vec<String> = vec!["foo".to_owned(), "bar".to_owned()]; in values() 89 type Subject = MediaTrackValueSequenceCapability<String>;
|
| /webrtc/webrtc/src/api/setting_engine/ |
| H A D | mod.rs | 41 pub nat_1to1_ips: Vec<String>, 44 pub multicast_dns_host_name: String, 45 pub username_fragment: String, 46 pub password: String, 79 pub(crate) mid_generator: Option<Arc<dyn Fn(isize) -> String + Send + Sync>>, 196 pub fn set_nat_1to1_ips(&mut self, ips: Vec<String>, candidate_type: RTCIceCandidateType) { in set_nat_1to1_ips() argument 234 pub fn set_multicast_dns_host_name(&mut self, host_name: String) { in set_multicast_dns_host_name() argument 240 pub fn set_ice_credentials(&mut self, username_fragment: String, password: String) { in set_ice_credentials() argument 324 pub fn set_mid_generator(&mut self, f: impl Fn(isize) -> String + Send + Sync + 'static) { in set_mid_generator()
|
| /webrtc/turn/src/server/ |
| H A D | server_test.rs | 16 cred_map: HashMap<String, Vec<u8>>, 75 username: String::new(), in test_server_simple() 76 password: String::new(), in test_server_simple() 77 realm: String::new(), in test_server_simple() 78 software: String::new(), in test_server_simple() 229 username: String::new(), in test_server_vnet_send_binding_request() 230 password: String::new(), in test_server_vnet_send_binding_request() 231 realm: String::new(), in test_server_vnet_send_binding_request() 232 software: String::new(), in test_server_vnet_send_binding_request() 268 realm: String::new(), in test_server_vnet_echo_via_relay() [all …]
|
| /webrtc/turn/src/auth/ |
| H A D | mod.rs | 20 ) -> Result<(String, String)> { in generate_long_term_credentials() argument 27 fn long_term_credentials(username: &str, shared_secret: &str) -> String { in long_term_credentials() argument 46 shared_secret: String, 72 pub fn new(shared_secret: String) -> Self { in new()
|