Lines Matching refs:V6
46 V6(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] SocketAddrV6),
139 IpAddr::V6(a) => SocketAddr::V6(SocketAddrV6::new(a, port, 0, 0)),
162 SocketAddr::V6(ref a) => IpAddr::V6(*a.ip()),
182 (&mut SocketAddr::V6(ref mut a), IpAddr::V6(new_ip)) => a.set_ip(new_ip),
206 SocketAddr::V6(ref a) => a.port(),
225 SocketAddr::V6(ref mut a) => a.set_port(new_port),
258 /// [`IPv6` address]: IpAddr::V6
265 /// let socket = SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 65535, 0, 1)), 8080);
276 matches!(*self, SocketAddr::V6(_))
581 /// Converts a [`SocketAddrV6`] into a [`SocketAddr::V6`].
583 SocketAddr::V6(sock6)
592 /// and creates a [`SocketAddr::V6`] for an [`IpAddr::V6`].