pub enum RecordDataChain<T, U> {
This(T),
Next(U),
}Expand description
A custom struct allowing to chain together multiple custom record data types.
Allows e.g. using the custom Txt struct from above and chain it with domain’s AllRecordData,
Variants§
Trait Implementations§
Source§impl<T: Clone, U: Clone> Clone for RecordDataChain<T, U>
impl<T: Clone, U: Clone> Clone for RecordDataChain<T, U>
Source§fn clone(&self) -> RecordDataChain<T, U>
fn clone(&self) -> RecordDataChain<T, U>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, U> ComposeRecordData for RecordDataChain<T, U>where
T: ComposeRecordData,
U: ComposeRecordData,
impl<T, U> ComposeRecordData for RecordDataChain<T, U>where
T: ComposeRecordData,
U: ComposeRecordData,
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.
Source§impl<T, U> Display for RecordDataChain<T, U>
impl<T, U> Display for RecordDataChain<T, U>
Source§impl<T, U> RecordData for RecordDataChain<T, U>where
T: RecordData,
U: RecordData,
impl<T, U> RecordData for RecordDataChain<T, U>where
T: RecordData,
U: RecordData,
Auto Trait Implementations§
impl<T, U> Freeze for RecordDataChain<T, U>
impl<T, U> RefUnwindSafe for RecordDataChain<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for RecordDataChain<T, U>
impl<T, U> Sync for RecordDataChain<T, U>
impl<T, U> Unpin for RecordDataChain<T, U>
impl<T, U> UnsafeUnpin for RecordDataChain<T, U>where
T: UnsafeUnpin,
U: UnsafeUnpin,
impl<T, U> UnwindSafe for RecordDataChain<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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.