Trait message_io::network::ToRemoteAddr[][src]

pub trait ToRemoteAddr {
    fn to_remote_addr(&self) -> Result<RemoteAddr>;
}

Similar to ToSocketAddrs but for a RemoteAddr. Instead of ToSocketAddrs that only can accept valid ‘ip:port’ string format, ToRemoteAddr accept any string without panic. If the string has the ‘ip:port’ format, it will be interpreted as a SocketAddr, if not, it will be interpreted as a string.

Required methods

Loading content...

Implementations on Foreign Types

impl ToRemoteAddr for &str[src]

impl ToRemoteAddr for String[src]

impl ToRemoteAddr for &String[src]

impl ToRemoteAddr for SocketAddr[src]

impl ToRemoteAddr for SocketAddrV4[src]

impl ToRemoteAddr for SocketAddrV6[src]

impl ToRemoteAddr for (&str, u16)[src]

impl ToRemoteAddr for (String, u16)[src]

impl ToRemoteAddr for (IpAddr, u16)[src]

impl ToRemoteAddr for (Ipv4Addr, u16)[src]

impl ToRemoteAddr for (Ipv6Addr, u16)[src]

Loading content...

Implementors

Loading content...