Lines Matching refs:CString
6 use std::ffi::{CStr, CString};
33 fn format_user_agent_string(agent: &str) -> CString { in format_user_agent_string() argument
41 CString::new(val).unwrap() in format_user_agent_string()
51 String(CString),
89 let authority = CString::new(authority).unwrap(); in default_authority()
350 OptTarget::Latency => CString::new("latency"), in optimize_for()
351 OptTarget::Blend => CString::new("blend"), in optimize_for()
352 OptTarget::Throughput => CString::new("throughput"), in optimize_for()
366 LbPolicy::PickFirst => CString::new("pick_first"), in load_balancing_policy()
367 LbPolicy::RoundRobin => CString::new("round_robin"), in load_balancing_policy()
380 pub fn raw_cfg_int(mut self, key: CString, val: i32) -> ChannelBuilder { in raw_cfg_int() argument
390 pub fn raw_cfg_string(mut self, key: CString, val: CString) -> ChannelBuilder { in raw_cfg_string() argument
443 let addr = CString::new(addr).unwrap(); in connect()
466 let target = CString::new(target).unwrap(); in connect_from_fd()
477 use std::ffi::CString;
495 let target = CString::new(target).unwrap(); in override_ssl_target()
506 let addr = CString::new(addr).unwrap(); in secure_connect()