Enum domain::iana::class::Class [] [src]

pub enum Class {
    In,
    Ch,
    Hs,
    None,
    Any,
    Int(u16),
}

DNS CLASSes.

The domain name space is partitioned into separate classes for different network types. That is, each class has its own separate record tree starting at the root. However, in practice, only the IN class is really relevant.

In addition, there are query classes or QCLASSes that are used in questions or UPDATE queries, namely NONE and ANY (or *).

Classes are represented by a 16 bit value. The enum wraps these values.

See RFC 1034 for the introduction of classes, section 3.2 of RFC 6895 for a discussion of the current state of afairs, and the DNS CLASSes IANA registry for an overview of assigned values.

Variants

Internet (IN).

This class is defined in RFC 1035 and really the only one relevant at all.

Chaosnet (CH).

A network protocol developed at MIT in the 1970s. Reused by BIND for built-in server information zones.",

Hesiod (HS).

A system information protocol part of MIT's Project Athena.",

Query class None.

Defined in RFC 2136, this class is used in UPDATE queries to require that an RRset does not exist prior to the update.",

Query class * (ANY).

This class can be used in a query to indicate that records for the given name from any class are requested.",

A raw value given through its integer.

Methods

impl Class
[src]

[src]

Returns a value from its raw integer value.

[src]

Returns the raw integer value for a value.

[src]

Returns a value from a well-defined mnemonic.

[src]

Returns the mnemonic for this value if there is one.

This will also return a mnemonic if a well-defined variant is hidden in a Int variant.

impl Class
[src]

[src]

impl Class
[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for Class
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Class
[src]

impl Debug for Class
[src]

[src]

Formats the value using the given formatter. Read more

impl From<u16> for Class
[src]

[src]

Performs the conversion.

impl From<Class> for u16
[src]

[src]

Performs the conversion.

impl<'a> From<&'a Class> for u16
[src]

[src]

Performs the conversion.

impl PartialEq for Class
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<u16> for Class
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<Class> for u16
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Class
[src]

impl PartialOrd for Class
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<u16> for Class
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<Class> for u16
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Class
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Class
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for Class
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for Class
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Class

impl Sync for Class