pub struct UnknownRecordData { /* private fields */ }Expand description
A type for parsing any type of record data.
This type accepts any record type and stores a reference to the plain binary record data in the message.
Because some record types allow compressed domain names in their record data yet values only contain the data’s own bytes, this type cannot be used safely with these record types.
RFC 3597 limits the types for which compressed names are allowed in the
record data to those efined in RFC 1035 itself. Specific types for all
these record types exist in [domain::rdata::rfc1035].
Ultimately, you should only use this type for record types for which there is no implementation available in this crate.
Implementations§
Source§impl UnknownRecordData
impl UnknownRecordData
Sourcepub fn from_bytes(rtype: Rtype, data: Bytes) -> Self
pub fn from_bytes(rtype: Rtype, data: Bytes) -> Self
Creates generic record data from a bytes value contain the data.
Trait Implementations§
Source§impl Clone for UnknownRecordData
impl Clone for UnknownRecordData
Source§fn clone(&self) -> UnknownRecordData
fn clone(&self) -> UnknownRecordData
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 Compose for UnknownRecordData
impl Compose for UnknownRecordData
Source§impl Compress for UnknownRecordData
impl Compress for UnknownRecordData
Source§impl Debug for UnknownRecordData
impl Debug for UnknownRecordData
Source§impl Display for UnknownRecordData
impl Display for UnknownRecordData
Source§impl<N> From<UnknownRecordData> for AllRecordData<N>
impl<N> From<UnknownRecordData> for AllRecordData<N>
Source§fn from(value: UnknownRecordData) -> Self
fn from(value: UnknownRecordData) -> Self
Converts to this type from the input type.
Source§impl<N> From<UnknownRecordData> for MasterRecordData<N>
impl<N> From<UnknownRecordData> for MasterRecordData<N>
Source§fn from(value: UnknownRecordData) -> Self
fn from(value: UnknownRecordData) -> Self
Converts to this type from the input type.
Source§impl Hash for UnknownRecordData
impl Hash for UnknownRecordData
Source§impl Ord for UnknownRecordData
impl Ord for UnknownRecordData
Source§fn cmp(&self, other: &UnknownRecordData) -> Ordering
fn cmp(&self, other: &UnknownRecordData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl ParseRecordData for UnknownRecordData
impl ParseRecordData for UnknownRecordData
Source§impl PartialEq for UnknownRecordData
impl PartialEq for UnknownRecordData
Source§impl PartialOrd for UnknownRecordData
impl PartialOrd for UnknownRecordData
Source§impl RecordData for UnknownRecordData
impl RecordData for UnknownRecordData
impl Eq for UnknownRecordData
impl StructuralPartialEq for UnknownRecordData
Auto Trait Implementations§
impl !Freeze for UnknownRecordData
impl RefUnwindSafe for UnknownRecordData
impl Send for UnknownRecordData
impl Sync for UnknownRecordData
impl Unpin for UnknownRecordData
impl UnwindSafe for UnknownRecordData
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