Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NLnetLabs/domain
/ functions
Functions
4,465 in github.com/NLnetLabs/domain
⨍
Functions
4,465
◇
Types & classes
838
↓ 409 callers
Method
unwrap
(self)
src/base/message.rs:1160
↓ 130 callers
Function
from_octets
()
src/base/charstr.rs:1234
↓ 120 callers
Function
from_str
()
src/base/charstr.rs:1245
↓ 98 callers
Method
unwrap
Unwraps the chain into its two constituent components.
src/base/name/chain.rs:121
↓ 88 callers
Function
parse
()
src/base/charstr.rs:1267
↓ 82 callers
Method
write_str
(&mut self, x: &str)
src/base/zonefile_fmt.rs:280
↓ 74 callers
Method
clone
(&self)
src/dnssec/sign/records.rs:761
↓ 73 callers
Method
len
Returns the length of the character string. This is the length of the content only, i.e., without the extra length octet added for the wire format.
src/base/charstr.rs:340
↓ 70 callers
Method
as_bytes
A byte representation of the [`RevName`]. Note that labels appear in reverse order to the _conventional_ format (it thus starts with the root label).
src/new/base/name/reversed.rs:102
↓ 67 callers
Method
as_ref
(&self)
src/rdata/aaaa.rs:171
↓ 62 callers
Method
as_ref
(&self)
src/tsig/mod.rs:392
↓ 61 callers
Method
clone
(&self)
src/net/server/dgram.rs:162
↓ 58 callers
Method
len
The length of the [`CharStr`]. This is always less than 256 -- it is guaranteed to fit in a [`u8`].
src/new/base/charstr.rs:67
↓ 56 callers
Method
data
Get the certificate association data field.
src/rdata/tlsa.rs:86
↓ 54 callers
Method
additional
Returns the additional section. Iterates over all three previous sections to determine the start of the additional section. If you are already access
src/base/message.rs:381
↓ 54 callers
Method
push
Decodes one more character of data. Returns an error as soon as the encoded data is determined to be illegal. It is okay to push more data after the
src/utils/base64.rs:255
↓ 54 callers
Method
question
Returns the question section.
src/base/message.rs:325
↓ 53 callers
Function
empty
()
src/base/name/relative.rs:1145
↓ 47 callers
Method
len
Returns the length of the parameter sequence in octets.
src/rdata/svcb/params.rs:348
↓ 46 callers
Method
remaining
The serialized options yet to be parsed.
src/new/rdata/edns.rs:349
↓ 44 callers
Method
clone
(&self)
src/new/edns/mod.rs:559
↓ 44 callers
Method
clone
(&self)
src/zonetree/in_memory/write.rs:226
↓ 43 callers
Method
push
( &mut self, record: impl ComposeRecord, )
src/net/server/batcher.rs:293
↓ 43 callers
Function
root
()
src/base/name/absolute.rs:1267
↓ 42 callers
Method
append_slice
Appends a slice to the builder. The method breaks up the slice into individual octets strings if necessary. If a previous call has started a new octe
src/rdata/rfc1035/txt.rs:743
↓ 42 callers
Method
as_slice
Returns a reference to a slice of the salt.
src/rdata/nsec3.rs:872
↓ 38 callers
Method
get_mut
(&mut self, class: Class)
src/zonetree/tree.rs:100
↓ 37 callers
Method
message
Read access to the inner message
src/net/server/message.rs:244
↓ 36 callers
Method
name_cmp
Returns the ordering between `self` and `other`. This method can be used to implement both [`PartialOrd`] and [`Ord`] on types implementing [`ToName`
src/base/name/traits.rs:268
↓ 35 callers
Method
append_slice
Appends the content of an octets slice to the end of the domain name. Starts a new label if necessary. Returns an error if pushing would exceed the s
src/base/name/builder.rs:217
↓ 34 callers
Method
len
(&self)
src/new/base/name/reversed.rs:89
↓ 32 callers
Method
opt
Returns the OPT record from the message, if there is one.
src/base/message.rs:549
↓ 31 callers
Method
as_ref
(&self)
src/rdata/svcb/params.rs:757
↓ 31 callers
Method
clone
(&self)
src/net/client/stream.rs:272
↓ 31 callers
Function
parse
( mut parser: Parser<'_, &[u8]>, equals: ParsedName<&[u8]>, compose_len: u
src/base/name/parsed.rs:1028
↓ 31 callers
Method
to_vec
(&self)
src/net/client/tsig.rs:594
↓ 31 callers
Method
unwrap
Unwrap the set of errors. Returns the set of errors as [Result::Err(T)] or [Result::Ok] if the set is empty.
src/zonetree/error.rs:191
↓ 30 callers
Method
send
Create a new send error.
src/net/client/dgram.rs:405
↓ 29 callers
Method
finish
(&mut self)
src/net/xfr/protocol/interpreter.rs:275
↓ 29 callers
Method
into_message
(self)
src/resolv/stub/mod.rs:478
↓ 29 callers
Function
test_compose_parse
Check that composing and parsing are reverse operations.
src/base/rdata.rs:576
↓ 29 callers
Function
test_rdlen
Check that `rdlen` produces the correct length. The test composes `data` both regularly and cannonically and checks that the length of the composed d
src/base/rdata.rs:566
↓ 27 callers
Method
authority
Returns the authority section. Iterates over both the question and the answer sections to determine the start of the authority section. If you are al
src/base/message.rs:363
↓ 27 callers
Method
checked_add
(self, rhs: Ttl)
src/base/record.rs:1333
↓ 27 callers
Method
get
(&self)
src/new/base/serial.rs:52
↓ 27 callers
Function
test_scan
Checks scanning.
src/base/rdata.rs:595
↓ 26 callers
Method
as_ref
(&self)
src/base/name/absolute.rs:746
↓ 26 callers
Method
insert
Insert a record in sorted order. If inserting a lot of records at once prefer [`Extend::extend()`] instead which will sort once after all insertions
src/dnssec/sign/records.rs:97
↓ 26 callers
Method
limit
Trims the given value to fit into the minimum/maximum range, inclusive.
src/utils/config.rs:32
↓ 26 callers
Method
next
(self)
src/zonetree/in_memory/versioned.rs:22
↓ 26 callers
Method
write_token
Push a token
src/base/zonefile_fmt.rs:298
↓ 25 callers
Method
header
(&self)
src/net/client/tsig.rs:613
↓ 25 callers
Method
iter
Iterate over the [`CharStr`]s in this record.
src/new/rdata/basic/txt.rs:133
↓ 25 callers
Method
len
Returns the length of the OPT record data.
src/base/opt/mod.rs:199
↓ 24 callers
Method
iter
(&self)
src/rdata/dnssec.rs:2132
↓ 24 callers
Method
name_eq
Tests whether `self` and `other` are equal. This method can be used to implement [`PartialEq`] on types implementing [`ToName`] since a blanket imple
src/base/name/traits.rs:246
↓ 24 callers
Method
next
(&mut self)
src/net/xfr/protocol/iterator.rs:66
↓ 23 callers
Function
init_logging
()
src/logging.rs:14
↓ 23 callers
Method
owner
Return the owner name of a group.
src/dnssec/validator/group.rs:263
↓ 23 callers
Method
start_answer
Starts creating an answer for the given message. Specifically, this sets the ID, QR, OPCODE, RD, and RCODE fields in the header and attempts to push
src/base/message_builder.rs:244
↓ 22 callers
Method
as_ref
(&self)
src/rdata/rfc1035/a.rs:185
↓ 22 callers
Method
as_ref
(&self)
src/base/name/relative.rs:602
↓ 22 callers
Function
make_ede
Helper function to create an EDNS(0) extended error option.
src/dnssec/validator/utilities.rs:366
↓ 22 callers
Function
mk_a_rr
(owner: &str)
src/dnssec/sign/test_util/mod.rs:51
↓ 21 callers
Method
as_ref
(&self)
src/zonetree/zone.rs:94
↓ 21 callers
Method
as_ref
(&self)
src/base/charstr.rs:458
↓ 21 callers
Method
compose
Composes the wire-format of the parameter sequence.
src/rdata/svcb/params.rs:399
↓ 21 callers
Method
header_mut
(&mut self)
src/net/client/tsig.rs:617
↓ 21 callers
Method
parse
Parse the questions and records in this message. This returns a fallible iterator of [`MessageItem`]s.
src/new/base/message.rs:56
↓ 20 callers
Method
advance
(&mut self)
src/rdata/dnssec.rs:2606
↓ 20 callers
Method
as_ref
(&self)
src/rdata/dnssec.rs:2178
↓ 20 callers
Method
as_ref
(&self)
src/base/header.rs:904
↓ 20 callers
Method
block
Start a sequence of grouped tokens The block might be surrounded by `(` and `)` in a multiline format.
src/base/zonefile_fmt.rs:291
↓ 20 callers
Method
cmp
Determine the order between two labels. Labels are compared ASCII-case-insensitively by their contents, as is conventional for DNS. Labels are equal
src/new/base/name/label.rs:509
↓ 20 callers
Function
from_slice
()
src/base/charstr.rs:1223
↓ 20 callers
Method
header_mut
Returns a mutable reference to the header.
src/base/header.rs:866
↓ 20 callers
Method
iter_labels
(&self)
src/base/name/traits.rs:90
↓ 20 callers
Method
unsized_copy_into
(&self)
src/utils/dst.rs:70
↓ 19 callers
Method
ends_with
Determines whether `base` is a suffix of `self`.
src/base/name/parsed.rs:157
↓ 19 callers
Function
fmt
(s: &[u8])
src/utils/base64.rs:591
↓ 19 callers
Method
iter
Return an iterator over the group set.
src/dnssec/validator/group.rs:850
↓ 19 callers
Method
iter
(&self)
src/dnssec/sign/records.rs:246
↓ 19 callers
Function
mk_builder_for_target
Helper for creating a [`MessageBuilder`] for a `Target`.
src/net/server/util.rs:27
↓ 19 callers
Function
mk_soa_rr
( owner: &str, mname: &str, rname: &str, )
src/dnssec/sign/test_util/mod.rs:240
↓ 19 callers
Method
run
Synchronously perform a DNS operation atop a standard resolver. This associated functions removes almost all boiler plate for the case that you want
src/resolv/stub/mod.rs:277
↓ 19 callers
Function
test
(zone: &str, tok: impl AsRef<[u8]>)
src/zonefile/inplace.rs:1753
↓ 18 callers
Method
answer
Validates an answer. Takes a message and checks whether it is a correctly signed answer for this transaction. First, if the last record in the messa
src/tsig/mod.rs:592
↓ 18 callers
Method
answer
A helper wrapper around [`ClientTransaction::answer`] and [`ClientSequence::answer`] that allows the appropriate method to be invoked without needing
src/net/client/tsig.rs:100
↓ 18 callers
Method
freeze
Converts the builder into an imutable ALPN value.
src/rdata/svcb/value.rs:889
↓ 18 callers
Method
get
Access the [`RecordData`] within.
src/new/rdata/mod.rs:554
↓ 18 callers
Method
ok
Checks whether there was an error converting symbols.
src/base/scan.rs:793
↓ 18 callers
Method
split_at
(&self, i: usize)
src/dnssec/sign/records.rs:735
↓ 18 callers
Function
validate_generic_representation
( test_value: T, display_repr: &str, debug_repr: &str, fromstr_list: &[&str],
src/base/iana/mod.rs:103
↓ 17 callers
Method
as_ref
(&self)
src/base/opt/mod.rs:721
↓ 17 callers
Method
clone
(&self)
src/base/name/chain.rs:256
↓ 17 callers
Method
elapsed
Return how much time has elapsed since the current timestamp.
src/dnssec/sign/keys/keyset.rs:1386
↓ 17 callers
Method
first
(&self)
src/dnssec/sign/records.rs:500
↓ 17 callers
Method
next_section
Proceeds to the answer section. This is identical to [`answer`][Self::answer] and is here for consistency.
src/base/message.rs:812
↓ 17 callers
Method
owner_rrs
(&self)
src/dnssec/sign/records.rs:188
↓ 17 callers
Method
parse
( parser: &mut Parser<'a, Src>, )
src/rdata/rp.rs:96
next →
1–100 of 4,465, ranked by callers