[][src]Enum gio::ResolverRecordType

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

Srv
Mx
Txt
Soa
Ns

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
[src]

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

impl<T> ToValue for T where
    T: SetValue + ?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.