pub struct Txt { /* private fields */ }Expand description
Txt record data.
Txt records hold descriptive text.
The Txt record type is defined in RFC 1035, section 3.3.14.
Implementations§
Source§impl Txt
impl Txt
Sourcepub fn iter(&self) -> TxtIter ⓘ
pub fn iter(&self) -> TxtIter ⓘ
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.
Sourcepub fn text(&self) -> Bytes
pub fn text(&self) -> Bytes
Returns the text content.
If the data is only one single character string, returns a simple clone of the slice with the data. If there are several character strings, their content will be copied together into one single, newly allocated bytes value.
Access to the individual character strings is possible via iteration.
Trait Implementations§
Source§impl<N> From<Txt> for AllRecordData<N>
impl<N> From<Txt> for AllRecordData<N>
Source§impl<N> From<Txt> for MasterRecordData<N>
impl<N> From<Txt> for MasterRecordData<N>
Source§impl<'a> IntoIterator for &'a Txt
impl<'a> IntoIterator for &'a Txt
Source§impl IntoIterator for Txt
impl IntoIterator for Txt
Source§impl Ord for Txt
impl Ord for Txt
Source§impl PartialOrd for Txt
impl PartialOrd for Txt
Source§impl RtypeRecordData for Txt
impl RtypeRecordData for Txt
impl Eq for Txt
impl StructuralPartialEq for Txt
Auto Trait Implementations§
impl !Freeze for Txt
impl RefUnwindSafe for Txt
impl Send for Txt
impl Sync for Txt
impl Unpin for Txt
impl UnwindSafe for Txt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more