pub struct TXT { /* private fields */ }
Expand description
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.
Implementations
sourceimpl TXT
impl TXT
sourcepub fn new(txt_data: Vec<String>) -> Self
pub fn new(txt_data: Vec<String>) -> Self
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.
sourcepub fn from_bytes(txt_data: Vec<&[u8]>) -> Self
pub fn from_bytes(txt_data: Vec<&[u8]>) -> Self
Creates a new TXT record data from bytes. Allows creating binary record data.
Arguments
txt_data
- the set of bytes which make up the txt_data.
Return value
The new TXT record data.
Trait Implementations
impl Eq for TXT
impl StructuralEq for TXT
impl StructuralPartialEq for TXT
Auto Trait Implementations
impl RefUnwindSafe for TXT
impl Send for TXT
impl Sync for TXT
impl Unpin for TXT
impl UnwindSafe for TXT
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more