Home
last modified time | relevance | path

Searched refs:Ipv6Addr (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/url/src/
Dhost.rs11 use std::net::{Ipv4Addr, Ipv6Addr};
25 Ipv6(Ipv6Addr),
59 Ipv6(Ipv6Addr),
189 fn write_ipv6(addr: &Ipv6Addr, f: &mut Formatter<'_>) -> fmt::Result { in write_ipv6() argument
332 fn parse_ipv6addr(input: &str) -> ParseResult<Ipv6Addr> { in parse_ipv6addr() argument
477 Ok(Ipv6Addr::new( in parse_ipv6addr()
/external/rust/crates/tokio/tests/
Dnet_lookup_host.rs5 use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr};
31 SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), 3000) in resolve_dns()
Drt_common.rs810 use std::net::Ipv6Addr;
817 let socket = UdpSocket::bind((Ipv6Addr::LOCALHOST, 0)).await.unwrap();
/external/rust/crates/nix/src/sys/socket/
Daddr.rs274 sin6_addr: Ipv6Addr::from_std(addr.ip()).0, in from_std()
307 InetAddr::V6(ref sa) => IpAddr::V6(Ipv6Addr(sa.sin6_addr)), in ip()
327 Ipv6Addr(sa.sin6_addr).to_std(), in to_std()
356 V6(Ipv6Addr),
373 IpAddr::V6(Ipv6Addr::new(a, b, c, d, e, f, g, h)) in new_v6()
379 net::IpAddr::V6(ref std) => IpAddr::V6(Ipv6Addr::from_std(std)), in from_std()
456 pub struct Ipv6Addr(pub libc::in6_addr); struct
474 impl Ipv6Addr { implementation
477 pub fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16) -> Ipv6Addr { in new() argument
478 Ipv6Addr(libc::in6_addr{s6_addr: to_u8_array!(a,b,c,d,e,f,g,h)}) in new()
[all …]
Dmod.rs29 Ipv6Addr,
370 pub fn new(group: Ipv6Addr) -> Self { in new()
/external/rust/crates/tokio/src/net/
Daddr.rs4 use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
119 impl ToSocketAddrs for (Ipv6Addr, u16) {}
121 impl sealed::ToSocketAddrsPriv for (Ipv6Addr, u16) {
196 if let Ok(addr) = host.parse::<Ipv6Addr>() {
Dudp.rs7 use std::net::{self, Ipv4Addr, Ipv6Addr, SocketAddr};
1351 pub fn join_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> { in join_multicast_v6() argument
1369 pub fn leave_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> { in leave_multicast_v6() argument
/external/rust/crates/mio/src/net/
Dudp.rs16 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr};
488 pub fn join_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> { in join_multicast_v6() argument
510 pub fn leave_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> { in leave_multicast_v6() argument
/external/rust/crates/mio/src/sys/unix/
Dnet.rs3 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
158 let ip = Ipv6Addr::from(addr.sin6_addr.s6_addr); in to_socket_addr()
/external/rust/crates/mio/src/sys/windows/
Dtcp.rs4 use std::net::{self, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6};
134 let ip = Ipv6Addr::from(*unsafe { addr.sin6_addr.u.Byte() }); in get_localaddr()
/external/rust/crates/url/tests/
Dunit.rs13 use std::net::{Ipv4Addr, Ipv6Addr};
255 Host::Ipv6(Ipv6Addr::new( in host()
262 Host::Ipv6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)), in host()
266 Host::Ipv6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), in host()
/external/rust/crates/nix/test/sys/
Dtest_socket.rs4 use std::net::{self, Ipv6Addr, SocketAddr, SocketAddrV6};
42 let ip: Ipv6Addr = "fe80::1".parse().unwrap(); in test_inetv6_addr_to_sock_addr()
/external/rust/crates/serde/src/ser/
Dimpls.rs747 impl Serialize for net::Ipv6Addr { implementation
/external/rust/crates/serde/src/de/
Dimpls.rs1466 parse_ip_impl!("IPv6 address" net::Ipv6Addr; 16);