[][src]Enum gio::ResolverRecordType

#[non_exhaustive]pub enum ResolverRecordType {
    Srv,
    Mx,
    Txt,
    Soa,
    Ns,
    // some variants omitted
}

The type of record that ResolverExt::lookup_records or ResolverExt::lookup_records_async should retrieve. The records are returned as lists of glib::Variant tuples. Each record type has different values in the variant tuples returned.

ResolverRecordType::Srv records are returned as variants with the signature (qqqs), containing a guint16 with the priority, a guint16 with the weight, a guint16 with the port, and a string of the hostname.

ResolverRecordType::Mx records are returned as variants with the signature (qs), representing a guint16 with the preference, and a string containing the mail exchanger hostname.

ResolverRecordType::Txt records are returned as variants with the signature (as), representing an array of the strings in the text record. Note: Most TXT records only contain a single string, but RFC 1035 does allow a record to contain multiple strings. The RFC which defines the interpretation of a specific TXT record will likely require concatenation of multiple strings if they are present, as with RFC 7208.

ResolverRecordType::Soa records are returned as variants with the signature (ssuuuuu), representing a string containing the primary name server, a string containing the administrator, the serial as a guint32, the refresh interval as a guint32, the retry interval as a guint32, the expire timeout as a guint32, and the TTL as a guint32.

ResolverRecordType::Ns records are returned as variants with the signature (s), representing a string of the hostname of the name server.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Srv

look up DNS SRV records for a domain

Mx

look up DNS MX records for a domain

Txt

look up DNS TXT records for a name

Soa

look up DNS SOA records for a zone

Ns

look up DNS NS records for a domain

Trait Implementations

impl Clone for ResolverRecordType[src]

impl Copy for ResolverRecordType[src]

impl Debug for ResolverRecordType[src]

impl Display for ResolverRecordType[src]

impl Eq for ResolverRecordType[src]

impl<'a> FromValue<'a> for ResolverRecordType[src]

impl<'a> FromValueOptional<'a> for ResolverRecordType[src]

impl Hash for ResolverRecordType[src]

impl Ord for ResolverRecordType[src]

impl PartialEq<ResolverRecordType> for ResolverRecordType[src]

impl PartialOrd<ResolverRecordType> for ResolverRecordType[src]

impl SetValue for ResolverRecordType[src]

impl StaticType for ResolverRecordType[src]

impl StructuralEq for ResolverRecordType[src]

impl StructuralPartialEq for ResolverRecordType[src]

Auto Trait Implementations

impl RefUnwindSafe for ResolverRecordType

impl Send for ResolverRecordType

impl Sync for ResolverRecordType

impl Unpin for ResolverRecordType

impl UnwindSafe for ResolverRecordType

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

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

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.