• Home
  • Raw
  • Download

Lines Matching refs:sealed

20 pub trait ToSocketAddrs: sealed::ToSocketAddrsPriv {}
29 arg.to_socket_addrs(sealed::Internal)
37 impl<T> sealed::ToSocketAddrsPriv for &T impl
39 T: sealed::ToSocketAddrsPriv + ?Sized,
44 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
45 (**self).to_socket_addrs(sealed::Internal) in to_socket_addrs()
53 impl sealed::ToSocketAddrsPriv for SocketAddr {
57 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
67 impl sealed::ToSocketAddrsPriv for SocketAddrV4 {
71 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
72 SocketAddr::V4(*self).to_socket_addrs(sealed::Internal) in to_socket_addrs()
80 impl sealed::ToSocketAddrsPriv for SocketAddrV6 {
84 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
85 SocketAddr::V6(*self).to_socket_addrs(sealed::Internal) in to_socket_addrs()
93 impl sealed::ToSocketAddrsPriv for (IpAddr, u16) { impl
97 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
107 impl sealed::ToSocketAddrsPriv for (Ipv4Addr, u16) { impl
111 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
113 SocketAddrV4::new(ip, port).to_socket_addrs(sealed::Internal) in to_socket_addrs()
121 impl sealed::ToSocketAddrsPriv for (Ipv6Addr, u16) { impl
125 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
127 SocketAddrV6::new(ip, port, 0, 0).to_socket_addrs(sealed::Internal) in to_socket_addrs()
135 impl sealed::ToSocketAddrsPriv for &[SocketAddr] { impl
139 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future { in to_socket_addrs()
150 impl sealed::ToSocketAddrsPriv for str {
151 type Iter = sealed::OneOrMore;
152 type Future = sealed::MaybeReady;
154 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future {
156 use sealed::MaybeReady;
162 return MaybeReady(sealed::State::Ready(Some(addr)));
168 MaybeReady(sealed::State::Blocking(spawn_blocking(move || {
178 impl sealed::ToSocketAddrsPriv for (&str, u16) { impl
179 type Iter = sealed::OneOrMore;
180 type Future = sealed::MaybeReady;
182 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future {
184 use sealed::MaybeReady;
193 return MaybeReady(sealed::State::Ready(Some(addr)));
200 return MaybeReady(sealed::State::Ready(Some(addr)));
205 MaybeReady(sealed::State::Blocking(spawn_blocking(move || {
215 impl sealed::ToSocketAddrsPriv for (String, u16) { impl
216 type Iter = sealed::OneOrMore;
217 type Future = sealed::MaybeReady;
219 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future {
220 (self.0.as_str(), self.1).to_socket_addrs(sealed::Internal)
228 impl sealed::ToSocketAddrsPriv for String {
229 type Iter = <str as sealed::ToSocketAddrsPriv>::Iter;
230 type Future = <str as sealed::ToSocketAddrsPriv>::Future;
232 fn to_socket_addrs(&self, _: sealed::Internal) -> Self::Future {
233 (&self[..]).to_socket_addrs(sealed::Internal)
238 pub(crate) mod sealed { module