[][src]Trait timeout_io::IpParseable

pub trait IpParseable {
    fn parse_ip(&self) -> Result<SocketAddr, TimeoutIoError>;
}

A trait for elements which can be parsed to an IP-address

Required methods

fn parse_ip(&self) -> Result<SocketAddr, TimeoutIoError>

Parses an IP-address

Returns either the parsed address or a corresponding IoError

Loading content...

Implementors

impl<T: AsRef<str>> IpParseable for T[src]

Loading content...