[][src]Trait tokio_net::ToSocketAddrs

pub trait ToSocketAddrs: ToSocketAddrsPriv { }

Convert or resolve without blocking to one or more SocketAddr values.

Currently, this trait is only used as an argument to Tokio functions that need to reference a target socket address.

This trait is sealed and is intended to be opaque. Users of Tokio should only use ToSocketAddrs in trait bounds and must not attempt to call the functions directly or reference associated types. Changing these is not considered a breaking change.

Implementations on Foreign Types

impl ToSocketAddrs for SocketAddr[src]

impl ToSocketAddrs for str[src]

impl<'_> ToSocketAddrs for (&'_ str, u16)[src]

impl ToSocketAddrs for (IpAddr, u16)[src]

impl ToSocketAddrs for String[src]

impl<'_, T: ToSocketAddrs + ?Sized> ToSocketAddrs for &'_ T[src]

Loading content...

Implementors

Loading content...