pub struct DnsAnswer<'a, D> {
pub name: DnsName<'a>,
pub rdata: D,
pub cache_flush: bool,
pub aclass: DnsAClass,
pub ttl: u32,
}
Expand description
A DNS message answer.
Fields§
§name: DnsName<'a>
The name of the answer.
rdata: D
The answer data.
cache_flush: bool
Whether the answer should be cached.
aclass: DnsAClass
The class of the answer.
ttl: u32
The time to live of the answer.
Implementations§
Source§impl<'a> DnsAnswer<'a, RData<'a>>
impl<'a> DnsAnswer<'a, RData<'a>>
Sourcepub fn into_parsed(self) -> Result<DnsAnswer<'a, DnsAType<'a>>, DnsMessageError>
pub fn into_parsed(self) -> Result<DnsAnswer<'a, DnsAType<'a>>, DnsMessageError>
Parse the rdata of the additional into a structured type.
Trait Implementations§
impl<'a, D> StructuralPartialEq for DnsAnswer<'a, D>
Auto Trait Implementations§
impl<'a, D> Freeze for DnsAnswer<'a, D>where
D: Freeze,
impl<'a, D> RefUnwindSafe for DnsAnswer<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for DnsAnswer<'a, D>where
D: Send,
impl<'a, D> Sync for DnsAnswer<'a, D>where
D: Sync,
impl<'a, D> Unpin for DnsAnswer<'a, D>where
D: Unpin,
impl<'a, D> UnwindSafe for DnsAnswer<'a, D>where
D: UnwindSafe,
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