#[repr(i32)]pub enum Type {
Show 14 variants
AuthQuery = 1,
AuthResponse = 2,
ResolverQuery = 3,
ResolverResponse = 4,
ClientQuery = 5,
ClientResponse = 6,
ForwarderQuery = 7,
ForwarderResponse = 8,
StubQuery = 9,
StubResponse = 10,
ToolQuery = 11,
ToolResponse = 12,
UpdateQuery = 13,
UpdateResponse = 14,
}Variants§
AuthQuery = 1
AUTH_QUERY is a DNS query message received from a resolver by an authoritative name server, from the perspective of the authoritative name server.
AuthResponse = 2
AUTH_RESPONSE is a DNS response message sent from an authoritative name server to a resolver, from the perspective of the authoritative name server.
ResolverQuery = 3
RESOLVER_QUERY is a DNS query message sent from a resolver to an authoritative name server, from the perspective of the resolver. Resolvers typically clear the RD (recursion desired) bit when sending queries.
ResolverResponse = 4
RESOLVER_RESPONSE is a DNS response message received from an authoritative name server by a resolver, from the perspective of the resolver.
ClientQuery = 5
CLIENT_QUERY is a DNS query message sent from a client to a DNS server which is expected to perform further recursion, from the perspective of the DNS server. The client may be a stub resolver or forwarder or some other type of software which typically sets the RD (recursion desired) bit when querying the DNS server. The DNS server may be a simple forwarding proxy or it may be a full recursive resolver.
ClientResponse = 6
CLIENT_RESPONSE is a DNS response message sent from a DNS server to a client, from the perspective of the DNS server. The DNS server typically sets the RA (recursion available) bit when responding.
ForwarderQuery = 7
FORWARDER_QUERY is a DNS query message sent from a downstream DNS server to an upstream DNS server which is expected to perform further recursion, from the perspective of the downstream DNS server.
ForwarderResponse = 8
FORWARDER_RESPONSE is a DNS response message sent from an upstream DNS server performing recursion to a downstream DNS server, from the perspective of the downstream DNS server.
StubQuery = 9
STUB_QUERY is a DNS query message sent from a stub resolver to a DNS server, from the perspective of the stub resolver.
StubResponse = 10
STUB_RESPONSE is a DNS response message sent from a DNS server to a stub resolver, from the perspective of the stub resolver.
ToolQuery = 11
TOOL_QUERY is a DNS query message sent from a DNS software tool to a DNS server, from the perspective of the tool.
ToolResponse = 12
TOOL_RESPONSE is a DNS response message received by a DNS software tool from a DNS server, from the perspective of the tool.
UpdateQuery = 13
UPDATE_QUERY is a DNS update query message received from a resolver by an authoritative name server, from the perspective of the authoritative name server.
UpdateResponse = 14
UPDATE_RESPONSE is a DNS update response message sent from an authoritative name server to a resolver, from the perspective of the authoritative name server.
Implementations§
Source§impl Type
impl Type
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.