Struct trust_dns_proto::rr::rdata::txt::TXT [−][src]
pub struct TXT { /* fields omitted */ }
RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987
3.3.14. TXT RDATA format
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ TXT-DATA /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
TXT RRs are used to hold descriptive text. The semantics of the text
depends on the domain where it is found.
Methods
impl TXT
[src]
impl TXT
pub fn new(txt_data: Vec<String>) -> TXT
[src]
pub fn new(txt_data: Vec<String>) -> TXT
Creates a new TXT record data.
Arguments
txt_data
- the set of strings which make up the txt_data.
Return value
The new TXT record data.
pub fn txt_data(&self) -> &[Box<[u8]>]
[src]
pub fn txt_data(&self) -> &[Box<[u8]>]
TXT-DATA One or more <character-string>s.
pub fn iter(&self) -> Iter<Box<[u8]>>
[src]
pub fn iter(&self) -> Iter<Box<[u8]>>
Returns an iterator over the arrays in the txt data
Trait Implementations
impl Debug for TXT
[src]
impl Debug for TXT
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TXT
[src]
impl PartialEq for TXT
fn eq(&self, other: &TXT) -> bool
[src]
fn eq(&self, other: &TXT) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TXT) -> bool
[src]
fn ne(&self, other: &TXT) -> bool
This method tests for !=
.
impl Eq for TXT
[src]
impl Eq for TXT
impl Hash for TXT
[src]
impl Hash for TXT
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for TXT
[src]
impl Clone for TXT