pub trait TryParseIp {
    // Required method
    fn try_parse_ip(&self) -> Option<RData>;
}
Expand description

Types of this trait will can be attempted for conversion to an IP address

Required Methods§

source

fn try_parse_ip(&self) -> Option<RData>

Attempts to parse self into an RData::A or RData::AAAA, None is returned if not possible

Implementations on Foreign Types§

source§

impl TryParseIp for str

source§

impl TryParseIp for String

source§

impl<'a, T> TryParseIp for &'a T
where T: TryParseIp + ?Sized,

Implementors§