Searched refs:ToSocketAddrs (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/ |
H A D | addr.rs | 45 pub trait ToSocketAddrs { trait 82 impl ToSocketAddrs for SocketAddr { 90 impl ToSocketAddrs for SocketAddrV4 { 98 impl ToSocketAddrs for SocketAddrV6 { 106 impl ToSocketAddrs for (IpAddr, u16) { impl 118 impl ToSocketAddrs for (Ipv4Addr, u16) { impl 136 impl ToSocketAddrs for (&str, u16) { impl 161 impl ToSocketAddrs for str { 186 impl ToSocketAddrs for String { 194 impl<T: ToSocketAddrs + ?Sized> ToSocketAddrs for &T { impl [all …]
|
H A D | mod.rs | 28 pub use addr::ToSocketAddrs;
|
H A D | udp.rs | 23 use crate::net::sys::ToSocketAddrs; 114 pub async fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<Self> { in bind() 164 pub async fn connect<A: ToSocketAddrs>(self, addr: A) -> io::Result<ConnectedUdpSocket> { in connect() 232 pub async fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], target: A) -> io::Result<usize> { in send_to()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/ |
H A D | listener.rs | 19 use crate::net::sys::addr::ToSocketAddrs; 71 pub async fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> { in bind()
|
H A D | stream.rs | 28 use crate::net::sys::ToSocketAddrs; 96 pub async fn connect<A: ToSocketAddrs>(addr: A) -> io::Result<Self> { in connect()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/ |
H A D | mod.rs | 32 TcpListener, TcpStream, ToSocketAddrs, UdpSocket,
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/dns/ |
H A D | resolver.rs | 19 use std::net::{SocketAddr, ToSocketAddrs};
|