Struct domain::base::rdata::UnknownRecordData[][src]

pub struct UnknownRecordData<Octets> { /* fields omitted */ }

A type for parsing any type of record data.

This type accepts any record type and stores the plain, unparsed record data as an octets sequence.

Because some record types allow compressed domain names in their record data, this type cannot be used safely with these record types. For these record types, the structure of the content needs to be known.

RFC 3597 limits the types for which compressed names are allowed in the record data to those defined 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. The two types AllRecordData and MasterRecordData provide a convenient way to always use the correct record data type.

Implementations

impl<Octets> UnknownRecordData<Octets>[src]

pub fn from_octets(rtype: Rtype, data: Octets) -> Self[src]

Creates generic record data from a bytes value contain the data.

pub fn rtype(&self) -> Rtype[src]

Returns the record type this data is for.

pub fn data(&self) -> &Octets[src]

Returns a reference to the record data.

Trait Implementations

impl<Octets, Other> CanonicalOrd<UnknownRecordData<Other>> for UnknownRecordData<Octets> where
    Octets: AsRef<[u8]>,
    Other: AsRef<[u8]>, 
[src]

impl<Octets: Clone> Clone for UnknownRecordData<Octets>[src]

impl<Octets: AsRef<[u8]>> Compose for UnknownRecordData<Octets>[src]

impl<Octets: AsRef<[u8]>> Debug for UnknownRecordData<Octets>[src]

impl<Octets: AsRef<[u8]>> Display for UnknownRecordData<Octets>[src]

impl<Octets: AsRef<[u8]>> Eq for UnknownRecordData<Octets>[src]

impl<O, N> From<UnknownRecordData<O>> for MasterRecordData<O, N>[src]

impl<O, N> From<UnknownRecordData<O>> for AllRecordData<O, N>[src]

impl<Octets, SrcOctets> OctetsFrom<UnknownRecordData<SrcOctets>> for UnknownRecordData<Octets> where
    Octets: OctetsFrom<SrcOctets>, 
[src]

impl<Octets: AsRef<[u8]>> Ord for UnknownRecordData<Octets>[src]

impl<Octets, Ref> ParseRecordData<Ref> for UnknownRecordData<Octets> where
    Octets: AsRef<[u8]>,
    Ref: OctetsRef<Range = Octets>, 
[src]

impl<Octets, Other> PartialEq<UnknownRecordData<Other>> for UnknownRecordData<Octets> where
    Octets: AsRef<[u8]>,
    Other: AsRef<[u8]>, 
[src]

impl<Octets, Other> PartialOrd<UnknownRecordData<Other>> for UnknownRecordData<Octets> where
    Octets: AsRef<[u8]>,
    Other: AsRef<[u8]>, 
[src]

impl<Octets: AsRef<[u8]>> RecordData for UnknownRecordData<Octets>[src]

Auto Trait Implementations

impl<Octets> RefUnwindSafe for UnknownRecordData<Octets> where
    Octets: RefUnwindSafe

impl<Octets> Send for UnknownRecordData<Octets> where
    Octets: Send

impl<Octets> Sync for UnknownRecordData<Octets> where
    Octets: Sync

impl<Octets> Unpin for UnknownRecordData<Octets> where
    Octets: Unpin

impl<Octets> UnwindSafe for UnknownRecordData<Octets> where
    Octets: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Source, Target> OctetsInto<Target> for Source where
    Target: OctetsFrom<Source>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,