Enum MasterRecordData

Source
pub enum MasterRecordData<N> {
Show 23 variants A(A), Cname(Cname<N>), Hinfo(Hinfo), Mb(Mb<N>), Md(Md<N>), Mf(Mf<N>), Minfo(Minfo<N>), Mr(Mr<N>), Mx(Mx<N>), Ns(Ns<N>), Ptr(Ptr<N>), Soa(Soa<N>), Txt(Txt), Wks(Wks), Srv(Srv<N>), Aaaa(Aaaa), Dnskey(Dnskey), Rrsig(Rrsig), Nsec(Nsec), Ds(Ds), Nsec3(Nsec3), Nsec3param(Nsec3param), Other(UnknownRecordData), // some variants omitted
}

Variants§

§

A(A)

§

Cname(Cname<N>)

§

Hinfo(Hinfo)

§

Mb(Mb<N>)

§

Md(Md<N>)

§

Mf(Mf<N>)

§

Minfo(Minfo<N>)

§

Mr(Mr<N>)

§

Mx(Mx<N>)

§

Ns(Ns<N>)

§

Ptr(Ptr<N>)

§

Soa(Soa<N>)

§

Txt(Txt)

§

Wks(Wks)

§

Srv(Srv<N>)

§

Aaaa(Aaaa)

§

Dnskey(Dnskey)

§

Rrsig(Rrsig)

§

Nsec(Nsec)

§

Ds(Ds)

§

Nsec3(Nsec3)

§

Nsec3param(Nsec3param)

§

Other(UnknownRecordData)

Implementations§

Source§

impl<N: Scan> MasterRecordData<N>

Source

pub fn scan<C>( rtype: Rtype, scanner: &mut Scanner<C>, ) -> Result<Self, ScanError>
where C: CharSource,

Trait Implementations§

Source§

impl<N: Clone> Clone for MasterRecordData<N>

Source§

fn clone(&self) -> MasterRecordData<N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N> Compose for MasterRecordData<N>
where N: Compose,

Source§

fn compose_len(&self) -> usize

Returns the number of bytes this value will need without compression.
Source§

fn compose<B: BufMut>(&self, buf: &mut B)

Appends the uncompressed representation of this value to buf. Read more
Source§

impl<N> Compress for MasterRecordData<N>
where N: Compress,

Source§

fn compress(&self, buf: &mut Compressor) -> Result<(), ShortBuf>

Appends the wire-format representation of the value to buf. Read more
Source§

impl<N: Debug> Debug for MasterRecordData<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<N> Display for MasterRecordData<N>
where N: Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<N> From<A> for MasterRecordData<N>

Source§

fn from(value: A) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Aaaa> for MasterRecordData<N>

Source§

fn from(value: Aaaa) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Cname<N>> for MasterRecordData<N>

Source§

fn from(value: Cname<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Dnskey> for MasterRecordData<N>

Source§

fn from(value: Dnskey) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Ds> for MasterRecordData<N>

Source§

fn from(value: Ds) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Hinfo> for MasterRecordData<N>

Source§

fn from(value: Hinfo) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Mb<N>> for MasterRecordData<N>

Source§

fn from(value: Mb<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Md<N>> for MasterRecordData<N>

Source§

fn from(value: Md<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Mf<N>> for MasterRecordData<N>

Source§

fn from(value: Mf<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Minfo<N>> for MasterRecordData<N>

Source§

fn from(value: Minfo<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Mr<N>> for MasterRecordData<N>

Source§

fn from(value: Mr<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Mx<N>> for MasterRecordData<N>

Source§

fn from(value: Mx<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Ns<N>> for MasterRecordData<N>

Source§

fn from(value: Ns<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Nsec> for MasterRecordData<N>

Source§

fn from(value: Nsec) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Nsec3> for MasterRecordData<N>

Source§

fn from(value: Nsec3) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Nsec3param> for MasterRecordData<N>

Source§

fn from(value: Nsec3param) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Ptr<N>> for MasterRecordData<N>

Source§

fn from(value: Ptr<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Rrsig> for MasterRecordData<N>

Source§

fn from(value: Rrsig) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Soa<N>> for MasterRecordData<N>

Source§

fn from(value: Soa<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Srv<N>> for MasterRecordData<N>

Source§

fn from(value: Srv<N>) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Txt> for MasterRecordData<N>

Source§

fn from(value: Txt) -> Self

Converts to this type from the input type.
Source§

impl<N> From<UnknownRecordData> for MasterRecordData<N>

Source§

fn from(value: UnknownRecordData) -> Self

Converts to this type from the input type.
Source§

impl<N> From<Wks> for MasterRecordData<N>

Source§

fn from(value: Wks) -> Self

Converts to this type from the input type.
Source§

impl<N> Hash for MasterRecordData<N>
where N: Hash,

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl ParseRecordData for MasterRecordData<ParsedDname>

Source§

type Err = MasterDataParseError

The type of an error returned when parsing fails.
Source§

fn parse_data( rtype: Rtype, parser: &mut Parser, rdlen: usize, ) -> Result<Option<Self>, Self::Err>

Parses the record data. Read more
Source§

impl<N> PartialEq for MasterRecordData<N>
where N: PartialEq,

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<N> RecordData for MasterRecordData<N>
where N: Compose + Compress,

Source§

fn rtype(&self) -> Rtype

Returns the record type associated with this record data instance. Read more
Source§

impl<N> Eq for MasterRecordData<N>
where N: PartialEq,

Auto Trait Implementations§

§

impl<N> !Freeze for MasterRecordData<N>

§

impl<N> RefUnwindSafe for MasterRecordData<N>
where N: RefUnwindSafe,

§

impl<N> Send for MasterRecordData<N>
where N: Send,

§

impl<N> Sync for MasterRecordData<N>
where N: Sync,

§

impl<N> Unpin for MasterRecordData<N>
where N: Unpin,

§

impl<N> UnwindSafe for MasterRecordData<N>
where N: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.