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 SocketAddrs.

Required Methods§

source

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 SocketAddrs.

Implementations on Foreign Types§

source§

impl ToSocketAddrs for SocketAddr

source§

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,

source§

impl ToSocketAddrs for str

source§

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,

source§

impl ToSocketAddrs for String

source§

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,

source§

impl<'a> ToSocketAddrs for &'a [SocketAddr]

source§

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,

source§

impl<T> ToSocketAddrs for &T
where T: ToSocketAddrs + Send + Sync + ?Sized,

source§

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,

Implementors§