pub struct TxtRecordData(/* private fields */);Available on non-
wasm_browser only.Expand description
Record data for a TXT record.
This contains a list of character strings, as defined in RFC 1035 Section 3.3.14.
TxtRecordData implements fmt::Display, so you can call ToString::to_string to
convert the record data into a string. This will parse each character string with
String::from_utf8_lossy and then concatenate all strings without a separator.
If you want to process each character string individually, use Self::iter.
Implementations§
Trait Implementations§
Source§impl Clone for TxtRecordData
impl Clone for TxtRecordData
Source§fn clone(&self) -> TxtRecordData
fn clone(&self) -> TxtRecordData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TxtRecordData
impl Debug for TxtRecordData
Source§impl Display for TxtRecordData
impl Display for TxtRecordData
Source§impl FromIterator<Box<[u8]>> for TxtRecordData
impl FromIterator<Box<[u8]>> for TxtRecordData
Auto Trait Implementations§
impl Freeze for TxtRecordData
impl RefUnwindSafe for TxtRecordData
impl Send for TxtRecordData
impl Sync for TxtRecordData
impl Unpin for TxtRecordData
impl UnwindSafe for TxtRecordData
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.