compio_net

Trait ToSocketAddrsAsync

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

See std::net::ToSocketAddrs.

§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§

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToSocketAddrsAsync for (&str, u16)

source§

impl ToSocketAddrsAsync for (IpAddr, u16)

source§

impl ToSocketAddrsAsync for (String, u16)

source§

type Iter = <(&'static str, u16) as ToSocketAddrsAsync>::Iter

source§

async fn to_socket_addrs_async(&self) -> Result<Self::Iter>

source§

impl ToSocketAddrsAsync for (Ipv4Addr, u16)

source§

impl ToSocketAddrsAsync for (Ipv6Addr, u16)

source§

impl ToSocketAddrsAsync for SocketAddr

source§

impl ToSocketAddrsAsync for str

source§

type Iter = <(&'static str, u16) as ToSocketAddrsAsync>::Iter

source§

async fn to_socket_addrs_async(&self) -> Result<Self::Iter>

source§

impl ToSocketAddrsAsync for String

source§

type Iter = <(&'static str, u16) as ToSocketAddrsAsync>::Iter

source§

async fn to_socket_addrs_async(&self) -> Result<Self::Iter>

source§

impl ToSocketAddrsAsync for SocketAddrV4

source§

impl ToSocketAddrsAsync for SocketAddrV6

source§

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

source§

impl<T: ToSocketAddrsAsync + ?Sized> ToSocketAddrsAsync for &T

Implementors§