Home
last modified time | relevance | path

Searched refs:str (Results 1 – 22 of 22) sorted by relevance

/smoltcp-0.9.1/examples/
Dutils.rs12 use std::str::{self, FromStr};
22 pub fn setup_logging_with_clock<F>(filter: &str, since_startup: F) in setup_logging_with_clock() argument
63 pub fn setup_logging(filter: &str) { in setup_logging() argument
67 pub fn create_options() -> (Options, Vec<&'static str>) { in create_options()
73 pub fn parse_options(options: &Options, free: Vec<&str>) -> Matches { in parse_options()
94 pub fn add_tuntap_options(opts: &mut Options, _free: &mut [&str]) { in add_tuntap_options() argument
110 pub fn add_middleware_options(opts: &mut Options, _free: &mut [&str]) { in add_middleware_options() argument
Dsixlowpan.rs47 use std::str;
119 str::from_utf8(data).unwrap(), in main()
130 str::from_utf8(&buffer[..len]).unwrap() in main()
150 str::from_utf8(data.as_ref()).unwrap_or("(invalid utf8)") in main()
160 str::from_utf8(data.as_ref()).unwrap_or("(invalid utf8)") in main()
Dclient.rs5 use std::str::{self, FromStr};
92 str::from_utf8(data.as_ref()).unwrap_or("(invalid utf8)") in main()
104 str::from_utf8(data.as_ref()).unwrap_or("(invalid utf8)") in main()
Dhttpclient.rs5 use std::str::{self, FromStr};
105 println!("{}", str::from_utf8(data).unwrap_or("(invalid utf8)")); in main()
Dloopback.rs9 use core::str;
140 socket.recv(|buffer| { (buffer.len(), str::from_utf8(buffer).unwrap()) }) in main()
Dsixlowpan_benchmark.rs47 use std::str;
65 fn if_nametoindex(ifname: &str) -> u32 { in if_nametoindex()
Dping.rs8 use std::str::FromStr;
/smoltcp-0.9.1/src/wire/
Dpretty_print.rs50 prefix: &'static str,
57 pub fn new(prefix: &'static str) -> PrettyIndent { in new()
95 prefix: &'static str,
102 pub fn new(prefix: &'static str, buffer: &'a dyn AsRef<[u8]>) -> PrettyPrinter<'a, T> { in new() argument
Ddhcpv4.rs398 pub fn get_sname(&self) -> Result<&str> { in get_sname() argument
405 let data = core::str::from_utf8(&data[..len]).map_err(|_| Error)?; in get_sname()
409 pub fn get_boot_file(&self) -> Result<&str> { in get_boot_file() argument
415 let data = core::str::from_utf8(&data[..len]).map_err(|_| Error)?; in get_boot_file()
/smoltcp-0.9.1/fuzz/
Dutils.rs10 use std::str::{self, FromStr};
17 pub fn create_options() -> (Options, Vec<&'static str>) { in create_options()
23 pub fn parse_options(options: &Options, free: Vec<&str>) -> Matches { in parse_options()
48 pub fn add_middleware_options(opts: &mut Options, _free: &mut Vec<&str>) { in add_middleware_options() argument
/smoltcp-0.9.1/src/
Dparsers.rs7 use core::str::FromStr;
25 fn new(data: &'a str) -> Parser<'a> { in new()
381 fn from_str(s: &str) -> Result<EthernetAddress> { in from_str()
391 fn from_str(s: &str) -> Result<Ipv4Address> { in from_str()
401 fn from_str(s: &str) -> Result<Ipv6Address> { in from_str()
410 fn from_str(s: &str) -> Result<IpAddress> { in from_str()
420 fn from_str(s: &str) -> Result<Ipv4Cidr> { in from_str()
435 fn from_str(s: &str) -> Result<Ipv6Cidr> { in from_str()
450 fn from_str(s: &str) -> Result<IpCidr> { in from_str()
472 fn from_str(s: &str) -> Result<IpEndpoint> { in from_str()
/smoltcp-0.9.1/
Dbuild.rs6 static CONFIGS: &[(&str, usize)] = &[
/smoltcp-0.9.1/utils/
Dpacket2pcap.rs26 fn print_usage(program: &str, opts: Options) { in print_usage() argument
/smoltcp-0.9.1/src/phy/sys/
Draw_socket.rs20 pub fn new(name: &str, medium: Medium) -> io::Result<RawSocketDesc> { in new() argument
Dtuntap_interface.rs20 pub fn new(name: &str, medium: Medium) -> io::Result<TunTapInterfaceDesc> { in new() argument
Dmod.rs108 fn ifreq_for(name: &str) -> ifreq { in ifreq_for()
Dbpf.rs71 pub fn new(name: &str, _medium: Medium) -> io::Result<BpfDevice> { in new() argument
/smoltcp-0.9.1/src/phy/
Dtuntap_interface.rs30 pub fn new(name: &str, medium: Medium) -> io::Result<TunTapInterface> { in new() argument
Draw_socket.rs29 pub fn new(name: &str, medium: Medium) -> io::Result<RawSocket> { in new() argument
Dtracer.rs144 prefix: &'static str,
/smoltcp-0.9.1/src/socket/
Ddns.rs201 name: &str, in start_query() argument
Dtcp.rs2282 fn write_str(&mut self, slice: &str) -> fmt::Result { in write_str()