pub trait ToSocketAddrsAsync {
type Iter: Iterator<Item = SocketAddr>;
// Required method
async fn to_socket_addrs_async(&self) -> Result<Self::Iter>;
}
Expand description
A trait for objects which can be converted or resolved to one or more
SocketAddr
values.
§Cancel safety
All implementation of ToSocketAddrsAsync
in this crate is safe to cancel
by dropping the future. The Glibc impl may leak the control block if the
task is not completed when dropping.
Required Associated Types§
sourcetype Iter: Iterator<Item = SocketAddr>
type Iter: Iterator<Item = SocketAddr>
Required Methods§
sourceasync fn to_socket_addrs_async(&self) -> Result<Self::Iter>
async fn to_socket_addrs_async(&self) -> Result<Self::Iter>
Object Safety§
This trait is not object safe.