pub trait AsyncToSocketAddrs: Sealed { }
Expand description

Converts or resolves addresses to SocketAddr values.

This trait currently only appears in function signatures and cannot be used directly.

However, you can use the resolve() function to resolve addresses.

Implementations on Foreign Types§

source§

impl AsyncToSocketAddrs for &[SocketAddr]

source§

impl AsyncToSocketAddrs for (&str, u16)

source§

impl AsyncToSocketAddrs for (IpAddr, u16)

source§

impl AsyncToSocketAddrs for (String, u16)

source§

impl AsyncToSocketAddrs for (Ipv4Addr, u16)

source§

impl AsyncToSocketAddrs for (Ipv6Addr, u16)

source§

impl AsyncToSocketAddrs for SocketAddr

source§

impl AsyncToSocketAddrs for str

source§

impl AsyncToSocketAddrs for String

source§

impl AsyncToSocketAddrs for SocketAddrV4

source§

impl AsyncToSocketAddrs for SocketAddrV6

source§

impl<T: AsyncToSocketAddrs + ?Sized> AsyncToSocketAddrs for &T

Implementors§