[][src]Trait tor_stream::ToTargetAddr

pub trait ToTargetAddr {
    fn to_target_addr(&self) -> Result<TargetAddr, Error>;
}

A trait for objects that can be converted to TargetAddr.

Required methods

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

Converts the value of self to a TargetAddr.

Loading content...

Implementations on Foreign Types

impl ToTargetAddr for SocketAddr[src]

impl<'a> ToTargetAddr for &'a str[src]

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

impl ToTargetAddr for TargetAddr[src]

impl ToTargetAddr for SocketAddrV6[src]

impl ToTargetAddr for (Ipv4Addr, u16)[src]

impl ToTargetAddr for SocketAddrV4[src]

impl ToTargetAddr for (Ipv6Addr, u16)[src]

Loading content...

Implementors

Loading content...