Trait photonio_uring::net::ToSocketAddrs
source · pub trait ToSocketAddrs {
type Iter: Iterator<Item = SocketAddr>;
type Future: Future<Output = Result<Self::Iter, Error>>;
fn to_socket_addrs(&self) -> Self::Future;
}
Expand description
Resolves to one or more socket addresses.
This trait is an async version of std::net::ToSocketAddrs
.
Required Associated Types
sourcetype Iter: Iterator<Item = SocketAddr>
type Iter: Iterator<Item = SocketAddr>
An iterator over the resolved SocketAddr
values.
Required Methods
sourcefn to_socket_addrs(&self) -> Self::Future
fn to_socket_addrs(&self) -> Self::Future
Resolves this object to an iterator of SocketAddr
values.
See also std::net::ToSocketAddrs::to_socket_addrs
.