Struct resolv::record::Record [] [src]

pub struct Record<T: RecordData> {
    pub name: String,
    pub class: Class,
    pub ttl: u32,
    pub data: T,
}

A DNS response record of a particular type

Fields

name: String class: Class ttl: u32 data: T

Methods

impl<T: RecordData> Record<T>
[src]

fn extract(msg: &mut Message, rr: &Rr) -> Result<Record<T>, Error>

For internal use.

Trait Implementations

impl<T: Clone + RecordData> Clone for Record<T>
[src]

fn clone(&self) -> Record<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<T: Debug + RecordData> Debug for Record<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.