pub struct ResourceRecord<'a> {
    pub name: Name<'a>,
    pub multicast_unique: bool,
    pub cls: Class,
    pub ttl: u32,
    pub data: RData<'a>,
}
Expand description

A single DNS record

We aim to provide whole range of DNS records available. But as time is limited we have some types of packets which are parsed and other provided as unparsed slice of bytes.

Fields

name: Name<'a>multicast_unique: bool

Whether or not the set of resource records is fully contained in the packet, or whether there will be more resource records in future packets. Only used for multicast DNS.

cls: Classttl: u32data: RData<'a>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.