Enum domain::iana::opcode::Opcode[][src]

pub enum Opcode {
    Query,
    IQuery,
    Status,
    Notify,
    Update,
    Int(u8),
}

DNS OpCodes.

The opcode specifies the kind of query to be performed.

The opcode is initially defined in RFC 1035. All currently assigned values can be found at http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-5

Variants

A standard query.

This query requests all records matching the name, class, and record type given in the query’s question section.

This value is defined in RFC 1035.

An inverse query (IQUERY) (obsolete).

The idea behind inverse queries was to provide a single answer and ask the DNS for all the questions that would lead to this answer. This kind of query has always been optional, was never widely supported, and has therefore been declared obsolete.

This value was defined in RFC 1035 and obsoleted by RFC 3425.

A server status request.

This value is defined in RFC 1035. The status request itself was defined as experimental and ‘to be defined’ in RFC 1034 and seems to never have been mentioned ever again.

A NOTIFY query.

NOTIFY queries allow master servers to inform slave servers when a zone has changed.

This value and the NOTIFY query are defined in RFC 1996.

An UPDATE query.

The UPDATE query can be used to alter zone content managed by a master server.

This value and the UPDATE query are defined in RFC 2136.

A raw integer opcode value.

When converting to an u8, only the lower four bits are used.

Methods

impl Opcode
[src]

Creates an Opcode value from an integer value.

Only considers the lower four bits of value.

Returns the integer value for this opcode.

Trait Implementations

impl Clone for Opcode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Opcode
[src]

impl Debug for Opcode
[src]

Formats the value using the given formatter. Read more

impl From<u8> for Opcode
[src]

Performs the conversion.

impl From<Opcode> for u8
[src]

Performs the conversion.

impl Display for Opcode
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Opcode
[src]

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

This method tests for !=.

impl PartialEq<u8> for Opcode
[src]

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

This method tests for !=.

impl PartialEq<Opcode> for u8
[src]

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

This method tests for !=.

impl Eq for Opcode
[src]

impl PartialOrd for Opcode
[src]

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

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

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

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

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

impl PartialOrd<u8> for Opcode
[src]

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

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

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

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

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

impl PartialOrd<Opcode> for u8
[src]

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

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

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

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

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

impl Ord for Opcode
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Opcode
[src]

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

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

Auto Trait Implementations

impl Send for Opcode

impl Sync for Opcode