pub trait ToTargetAddr {
    // Required method
    fn to_target_addr(&self) -> Result<TargetAddr>;
}
Expand description

A trait for objects that can be converted to TargetAddr.

Required Methods§

source

fn to_target_addr(&self) -> Result<TargetAddr>

Converts the value of self to a TargetAddr.

Implementations on Foreign Types§

source§

impl ToTargetAddr for (Ipv4Addr, u16)

source§

impl ToTargetAddr for (Ipv6Addr, u16)

source§

impl ToTargetAddr for SocketAddr

source§

impl ToTargetAddr for SocketAddrV4

source§

impl ToTargetAddr for SocketAddrV6

source§

impl<'a> ToTargetAddr for (&'a str, u16)

Implementors§