trust_dns_proto::rr::domain

Trait TryParseIp

Source
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§