pub struct Txt<'a>(/* private fields */);Expand description
A custom struct for representing a TXT data record off from a slice of
key-value &str pairs.
Implementations§
Trait Implementations§
Source§impl ComposeRecordData for Txt<'_>
impl ComposeRecordData for Txt<'_>
Source§fn rdlen(&self, _compress: bool) -> Option<u16>
fn rdlen(&self, _compress: bool) -> Option<u16>
Returns the length of the record data if available. Read more
Source§fn compose_rdata<Target: Composer + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_rdata<Target: Composer + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the wire format of the record data into
target.Source§fn compose_canonical_rdata<Target: Composer + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_canonical_rdata<Target: Composer + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the canonical wire format of the record data into
target.Source§fn compose_len_rdata<Target>(
&self,
target: &mut Target,
) -> Result<(), <Target as OctetsBuilder>::AppendError>
fn compose_len_rdata<Target>( &self, target: &mut Target, ) -> Result<(), <Target as OctetsBuilder>::AppendError>
Appends the record data prefixed with its length.
Source§fn compose_canonical_len_rdata<Target>(
&self,
target: &mut Target,
) -> Result<(), <Target as OctetsBuilder>::AppendError>
fn compose_canonical_len_rdata<Target>( &self, target: &mut Target, ) -> Result<(), <Target as OctetsBuilder>::AppendError>
Appends the record data prefixed with its length.
Auto Trait Implementations§
impl<'a> Freeze for Txt<'a>
impl<'a> RefUnwindSafe for Txt<'a>
impl<'a> Send for Txt<'a>
impl<'a> Sync for Txt<'a>
impl<'a> Unpin for Txt<'a>
impl<'a> UnwindSafe for Txt<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.