pub trait ToSocketAddrs: Sealed { }Expand description
What an operation that takes an address accepts: a SocketAddr, an
(IpAddr, u16) pair, a slice or array of addresses, or a string,
"host:port" or ("host", port). Numbers are used as they are; a name
is looked up on the blocking pool (getaddrinfo), never on the calling
thread.
The trait is sealed: its implementations are the ones listed here.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".