Skip to main content

Crate dnsy_core

Crate dnsy_core 

Source
Expand description

Shared vocabulary types for DNSY. No logic beyond small, total helpers.

Modules§

hex
Hexadecimal encoding shared by the CLI, the API and the engine.
net
Network vocabulary shared by every per-client limit.

Structs§

SystemClock
The system clock.
TokenId
Database id of an API token.
UserId
Database id of a user.

Enums§

BlockMode
How a blocked query is answered. The serde strings are the [filter] block_mode config values.
DnssecStatus
DNSSEC validation outcome (RFC 4035 section 4.3) plus Unchecked (validation off, CD=1, or locally generated answer).
KeyRole
What a key signs.
KeyState
Lifecycle state of a key.
Principal
Who made a request.
Role
User role.
Scope
Permission scope carried by a token or granted by a role.
Transport
Transport a DNS request arrived on.
Validation
DNSSEC validation mode. The serde strings are the [dnssec] validation config values.

Traits§

Clock
Source of time. Production code uses SystemClock; tests use ManualClock (feature test-util).