Struct dns_parser::Name [] [src]

pub struct Name<'a> {
    // some fields omitted
}

The DNS name as stored in the original packet

This is contains just a reference to a slice that contains the data. You may turn this into a string using .to_string()

Methods

impl<'a> Name<'a>
[src]

fn scan(data: &'a [u8], original: &'a [u8]) -> Result<Name<'a>, Error>

fn byte_len(&self) -> usize

Trait Implementations

impl<'a> Debug for Name<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> Display for Name<'a>
[src]

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

Formats the value using the given formatter.