pub enum QDnsName<'temp> {
IpV4(&'temp Ipv4Addr),
IpV6(&'temp Ipv6Addr),
Name(&'temp str),
}
Expand description
Variants§
Implementations§
source§impl<'temp> QDnsName<'temp>
impl<'temp> QDnsName<'temp>
sourcepub fn is_ipv4(&self) -> bool
pub fn is_ipv4(&self) -> bool
Answers if current type is IpV4. But does not performs check if Name is an IP in str format
sourcepub fn is_ipv6(&self) -> bool
pub fn is_ipv6(&self) -> bool
Answers if current type is IpV6. But does not performs check if Name is an IP in str format
sourcepub fn is_ip(&self) -> bool
pub fn is_ip(&self) -> bool
Answers if current type is IpV4 or IpV6. But does not performs check if Name is an IP in str format
sourcepub fn get_ip_qtype(&self) -> Option<QType>
pub fn get_ip_qtype(&self) -> Option<QType>
Returns the type of the IP address version in QType format.
Trait Implementations§
source§impl<'temp> PartialEq for QDnsName<'temp>
impl<'temp> PartialEq for QDnsName<'temp>
impl<'temp> Eq for QDnsName<'temp>
Auto Trait Implementations§
impl<'temp> Freeze for QDnsName<'temp>
impl<'temp> RefUnwindSafe for QDnsName<'temp>
impl<'temp> Send for QDnsName<'temp>
impl<'temp> Sync for QDnsName<'temp>
impl<'temp> Unpin for QDnsName<'temp>
impl<'temp> UnwindSafe for QDnsName<'temp>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more