domain ::base ::iana ::opcode Enum Opcode Copy item path Source pub enum Opcode {
Query,
IQuery,
Status,
Notify,
Update,
Dso,
Int(u8 ),
}
Expand description DNS OpCodes.
The opcode specifies the kind of query to be performed.
The opcode and its initial set of values are defined in RFC 1035 .
Additional values have been defined over time. All currently assigned
values can be found in the IANA registry . This type is complete as
of 2019-12-23.
A standard query (0).
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) (1, 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 (2).
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 (4).
NOTIFY queries allow primary servers to inform secondary servers when
a zone has changed.
This value and the NOTIFY query are defined in RFC 1996 .
An UPDATE query (5).
The UPDATE query can be used to alter zone content managed by an
authoritative server.
This value and the UPDATE query are defined in RFC 2136 .
DNS Stateful operations (DSO) (6).
The DSO query can be used to manage stateful sessions between two
DNS endpoints.
This value and the DOS query are defined in RFC 8490 .
A raw value given through its integer.
Returns a value from its raw integer value.
Returns the raw integer value for a value.
Returns a value from a well-defined mnemonic.
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.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The associated error which can be returned from parsing.
Parses a string
s
to return a value of this type.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dst
.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
Performs the conversion.
Performs an infallible conversion.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String
.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.