Trait mz_ore::netio::socket::ToSocketAddrs
source · pub trait ToSocketAddrs {
// Required method
fn to_socket_addrs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SocketAddr>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Available on crate feature
network
only.Expand description
Converts or resolves without blocking to one or more SocketAddr
s.
Required Methods§
sourcefn to_socket_addrs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SocketAddr>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn to_socket_addrs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SocketAddr>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Converts to resolved SocketAddr
s.