Trait ToTargetAddr

Source
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 &str

Source§

impl ToTargetAddr for (&str, u16)

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

Implementors§