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 is initially defined in RFC 1035. All currently assigned
values can be found in the IANA registry . This type is complete as of
2019-01-28.
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.
DNS Stateful operations (DSO).
This value is defined in draft-ietf-dnsop-session-signal.
A raw integer opcode value.
When converting to an u8
, only the lower four bits are used.
Creates an Opcode value from an integer value.
Only considers the lower four bits of value
.
Returns the integer value for this opcode.
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.
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
dest
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
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.