Struct domain::rdata::rfc1035::Txt[][src]

pub struct Txt<T: AsRef<[u8]>> { /* fields omitted */ }

Txt record data.

Txt records hold descriptive text.

The Txt record type is defined in RFC 1035, section 3.3.14.

Methods

impl<T: AsRef<[u8]>> Txt<T>
[src]

Creates a new Txt record from content.

Important traits for TxtIter<'a>

Returns an iterator over the text items.

The Txt format contains one or more length-delimited byte strings. This method returns an iterator over each of them.

Returns the text content.

If the raw content is only a single character-string, returns a borrow else creates an owned vec by concatenating all the parts.

impl Txt<Vec<u8>>
[src]

Trait Implementations

impl<T: Clone + AsRef<[u8]>> Clone for Txt<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + AsRef<[u8]>> Debug for Txt<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Eq + AsRef<[u8]>> Eq for Txt<T>
[src]

impl<T: Ord + AsRef<[u8]>> Ord for Txt<T>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: PartialEq + AsRef<[u8]>> PartialEq for Txt<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: PartialOrd + AsRef<[u8]>> PartialOrd for Txt<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: AsRef<[u8]>> RecordData for Txt<T>
[src]

Returns the record type for this record data instance. Read more

Appends the record data to the end of a composer.

impl<'a> ParsedRecordData<'a> for Txt<&'a [u8]>
[src]

Parses the record data out of a parser. Read more

impl<T: AsRef<[u8]>> Display for Txt<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Txt<T> where
    T: Send

impl<T> Sync for Txt<T> where
    T: Sync