/third_party/rust/crates/quote/tests/ui/ |
D | not-repeatable.stderr | 1 error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were … 4 3 | struct Ipv4Addr; 8 | doesn't satisfy `Ipv4Addr: Iterator` 9 | doesn't satisfy `Ipv4Addr: ToTokens` 10 | doesn't satisfy `Ipv4Addr: ext::RepIteratorExt` 11 | doesn't satisfy `Ipv4Addr: ext::RepToTokensExt` 14 | ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds 17 `Ipv4Addr: Iterator` 18 which is required by `Ipv4Addr: ext::RepIteratorExt` 19 `&Ipv4Addr: Iterator` [all …]
|
D | not-repeatable.rs | 3 struct Ipv4Addr; struct 6 let ip = Ipv4Addr; in main()
|
D | not-quotable.rs | 2 use std::net::Ipv4Addr; 5 let ip = Ipv4Addr::LOCALHOST; in main()
|
D | not-quotable.stderr | 1 error[E0277]: the trait bound `Ipv4Addr: ToTokens` is not satisfied 7 | the trait `ToTokens` is not implemented for `Ipv4Addr`
|
/third_party/rust/crates/rustix/src/net/ |
D | ip.rs | 41 V4(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv4Addr), 80 pub struct Ipv4Addr { struct 466 impl Ipv4Addr { impl 485 pub const fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr { in new() argument 486 Ipv4Addr { in new() 502 pub const LOCALHOST: Self = Ipv4Addr::new(127, 0, 0, 1); 518 pub const UNSPECIFIED: Self = Ipv4Addr::new(0, 0, 0, 0); 531 pub const BROADCAST: Self = Ipv4Addr::new(255, 255, 255, 255); 1009 impl From<Ipv4Addr> for IpAddr { 1025 fn from(ipv4: Ipv4Addr) -> IpAddr { in from() [all …]
|
D | sockopt.rs | 9 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; 512 multiaddr: &Ipv4Addr, in set_ip_add_membership() argument 513 interface: &Ipv4Addr, in set_ip_add_membership() argument 567 multiaddr: &Ipv4Addr, in set_ip_drop_membership() argument 568 interface: &Ipv4Addr, in set_ip_drop_membership() argument
|
D | addr.rs | 12 use crate::net::ip::{IpAddr, Ipv4Addr, Ipv6Addr}; 77 ip: Ipv4Addr, 298 pub const fn new(ip: Ipv4Addr, port: u16) -> SocketAddrV4 { in new() argument 318 pub const fn ip(&self) -> &Ipv4Addr { in ip() argument 334 pub fn set_ip(&mut self, new_ip: Ipv4Addr) { in set_ip() argument
|
D | mod.rs | 36 pub use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 42 ip::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope},
|
/third_party/rust/crates/rustix/tests/net/ |
D | v4.rs | 8 accept, bind_v4, connect_v4, getsockname, listen, recv, send, socket, AddressFamily, Ipv4Addr, 20 let name = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 0); in server() 55 let addr = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), port); in client()
|
D | connect_bind_send.rs | 5 use std::net::{IpAddr, Ipv4Addr, SocketAddr}; 10 let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST); in net_v4_connect_any() 81 let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST); in net_v4_connect() 160 let localhost = Ipv4Addr::LOCALHOST; in net_v4_bind_any() 231 let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST); in net_v4_sendto() 314 let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST); in net_v4_sendto_any() 391 let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST); in net_v4_acceptfrom()
|
D | addr.rs | 6 Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrStorage, SocketAddrV4, SocketAddrV6, in encode_decode() 10 let orig = SocketAddrV4::new(Ipv4Addr::new(2, 3, 5, 6), 33); in encode_decode()
|
/third_party/rust/crates/rustix/tests/io/ |
D | epoll.rs | 7 accept, bind_v4, connect_v4, getsockname, listen, socket, AddressFamily, Ipv4Addr, Protocol, 18 bind_v4(&listen_sock, &SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0)).unwrap(); in server() 72 let addr = SocketAddrV4::new(Ipv4Addr::LOCALHOST, port); in client()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | read_sockaddr.rs | 7 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; 68 Ipv4Addr::from(u32::from_be(decode.sin_addr.s_addr)), in read_sockaddr() 138 Ipv4Addr::from(u32::from_be(decode.sin_addr.s_addr)), in read_sockaddr_os()
|
D | syscalls.rs | 755 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; 1155 multiaddr: &Ipv4Addr, in set_ip_add_membership() argument 1156 interface: &Ipv4Addr, in set_ip_add_membership() argument 1175 multiaddr: &Ipv4Addr, in set_ip_drop_membership() argument 1176 interface: &Ipv4Addr, in set_ip_drop_membership() argument 1203 fn to_imr(multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> c::ip_mreq { in to_imr() argument 1211 fn to_imr_addr(addr: &Ipv4Addr) -> c::in_addr { in to_imr_addr()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | syscalls.rs | 397 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; 726 multiaddr: &Ipv4Addr, in set_ip_add_membership() argument 727 interface: &Ipv4Addr, in set_ip_add_membership() argument 773 multiaddr: &Ipv4Addr, in set_ip_drop_membership() argument 774 interface: &Ipv4Addr, in set_ip_drop_membership() argument 828 fn to_imr(multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> c::ip_mreq { in to_imr() argument 836 fn to_imr_addr(addr: &Ipv4Addr) -> c::in_addr { in to_imr_addr()
|
D | read_sockaddr.rs | 8 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; 111 Ipv4Addr::from(u32::from_be(in_addr_s_addr(decode.sin_addr))), in read_sockaddr() 214 Ipv4Addr::from(u32::from_be(in_addr_s_addr(decode.sin_addr))), in inner_read_sockaddr_os()
|
/third_party/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 43 pub(crate) const fn ipv4addr_to_libc(addr: net::Ipv4Addr) -> libc::in_addr { in ipv4addr_to_libc() 44 static_assertions::assert_eq_size!(net::Ipv4Addr, libc::in_addr); in ipv4addr_to_libc() 472 sin_addr: Ipv4Addr::from_std(addr.ip()).0, 518 InetAddr::V4(ref sa) => IpAddr::V4(Ipv4Addr(sa.sin_addr)), 535 Ipv4Addr(sa.sin_addr).to_std(), 575 V4(Ipv4Addr), 586 IpAddr::V4(Ipv4Addr::new(a, b, c, d)) 600 net::IpAddr::V4(ref std) => IpAddr::V4(Ipv4Addr::from_std(std)), 636 pub struct Ipv4Addr(pub libc::in_addr); 640 impl Ipv4Addr { impl [all …]
|
D | mod.rs | 49 InetAddr, IpAddr, Ipv4Addr, Ipv6Addr, LinkAddr, SockaddrIn, SockaddrIn6, 59 InetAddr, IpAddr, Ipv4Addr, Ipv6Addr, SockaddrIn, SockaddrIn6, 526 pub fn new(group: net::Ipv4Addr, interface: Option<net::Ipv4Addr>) 530 None => net::Ipv4Addr::UNSPECIFIED,
|
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_ser.rs | 658 &"1.2.3.4".parse::<net::Ipv4Addr>().unwrap().readable(), in test_net_ipv4addr_readable() 707 &net::Ipv4Addr::from(*b"1234").compact(), in test_net_ipv4addr_compact() 762 &net::SocketAddrV4::new(net::Ipv4Addr::from(*b"1234"), 1234).compact(), in test_net_socketaddr_compact()
|
D | test_de.rs | 2039 "1.2.3.4".parse::<net::Ipv4Addr>().unwrap().readable(), in test_net_ipv4addr_readable() 2088 net::Ipv4Addr::from(*b"1234").compact(), in test_net_ipv4addr_compact() 2158 net::SocketAddrV4::new(net::Ipv4Addr::from(*b"1234"), 1234).compact(), in test_net_socketaddr_compact()
|
/third_party/rust/crates/serde/serde/src/ser/ |
D | impls.rs | 724 impl Serialize for net::Ipv4Addr { implementation
|
/third_party/rust/crates/nix/ |
D | CHANGELOG.md | 248 - Deprecated `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` in favor of their equivalents 789 - `Ipv4Addr::octets`, `Ipv4Addr::to_std`, `Error::as_errno`,
|
/third_party/rust/crates/serde/serde/src/de/ |
D | impls.rs | 1573 parse_ip_impl!("IPv4 address" net::Ipv4Addr; 4);
|