Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NLnetLabs/domain
/ functions
Functions
3,926 in github.com/NLnetLabs/domain
⨍
Functions
3,926
◇
Types & classes
732
↓ 402 callers
Method
unwrap
(self)
src/base/message.rs:1166
↓ 137 callers
Function
from_octets
()
src/base/charstr.rs:1234
↓ 124 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
↓ 91 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
↓ 90 callers
Function
parse
()
src/base/charstr.rs:1267
↓ 75 callers
Method
as_ref
(&self)
src/rdata/aaaa.rs:171
↓ 75 callers
Method
clone
(&self)
src/dnssec/sign/records.rs:798
↓ 72 callers
Method
as_ref
(&self)
src/tsig/mod.rs:383
↓ 65 callers
Method
write_str
(&mut self, x: &str)
src/base/zonefile_fmt.rs:280
↓ 61 callers
Method
clone
(&self)
src/net/server/dgram.rs:162
↓ 57 callers
Method
data
Get the certificate association data field.
src/rdata/tlsa.rs:122
↓ 57 callers
Method
question
Returns the question section.
src/base/message.rs:325
↓ 56 callers
Method
len
Returns the length of the parameter sequence in octets.
src/rdata/svcb/params.rs:348
↓ 55 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
↓ 55 callers
Method
clone
(&self)
src/zonetree/in_memory/write.rs:234
↓ 51 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
↓ 50 callers
Method
clone
(&self)
src/base/message.rs:826
↓ 45 callers
Function
empty
()
src/base/name/relative.rs:1145
↓ 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:750
↓ 37 callers
Method
as_slice
Returns a reference to a slice of the salt.
src/rdata/nsec3.rs:878
↓ 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
↓ 36 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:201
↓ 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
↓ 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:1035
↓ 31 callers
Method
to_vec
(&self)
src/net/client/tsig.rs:594
↓ 30 callers
Method
iter
(&self)
src/rdata/dnssec.rs:2139
↓ 30 callers
Method
send
Create a new send error.
src/net/client/dgram.rs:405
↓ 30 callers
Function
test_compose_parse
Check that composing and parsing are reverse operations.
src/base/rdata.rs:586
↓ 30 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:576
↓ 29 callers
Method
into_message
(self)
src/resolv/stub/mod.rs:478
↓ 28 callers
Method
checked_add
(self, rhs: Ttl)
src/base/record.rs:1333
↓ 28 callers
Method
next
(self)
src/zonetree/in_memory/versioned.rs:22
↓ 28 callers
Function
test_scan_check
Checks scanning.
src/base/rdata.rs:625
↓ 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
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:101
↓ 27 callers
Method
limit
Trims the given value to fit into the minimum/maximum range, inclusive.
src/utils/config.rs:32
↓ 27 callers
Method
parse
( parser: &mut Parser<'a, Src>, )
src/rdata/rp.rs:96
↓ 26 callers
Method
as_ref
(&self)
src/base/name/absolute.rs:746
↓ 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
len
Returns the length of the OPT record data.
src/base/opt/mod.rs:199
↓ 24 callers
Function
init_logging
()
src/logging.rs:14
↓ 24 callers
Function
make_ede
Helper function to create an EDNS(0) extended error option.
src/dnssec/validator/utilities.rs:366
↓ 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
↓ 24 callers
Method
rtype
Returns the record type.
src/base/record.rs:148
↓ 23 callers
Method
as_ref
(&self)
src/rdata/rfc1035/a.rs:185
↓ 23 callers
Method
owner
Return the owner name of a group.
src/dnssec/validator/group.rs:264
↓ 22 callers
Method
as_ref
(&self)
src/base/name/relative.rs:602
↓ 22 callers
Method
get_mut
(&mut self, class: Class)
src/zonetree/tree.rs:100
↓ 22 callers
Function
mk_a_rr
(owner: &str)
src/dnssec/sign/test_util/mod.rs:51
↓ 22 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
↓ 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
Returns a mutable reference to the header.
src/base/header.rs:866
↓ 21 callers
Method
header_mut
(&mut self)
src/net/client/tsig.rs:617
↓ 21 callers
Method
set_rd
Sets the value of the [RD](Flags::rd) bit.
src/base/header.rs:238
↓ 20 callers
Method
advance
(&mut self)
src/rdata/dnssec.rs:2613
↓ 20 callers
Method
as_mut
(&mut self)
src/rdata/aaaa.rs:177
↓ 20 callers
Method
as_ref
(&self)
src/rdata/dnssec.rs:2185
↓ 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
iter
Return an iterator over the group set.
src/dnssec/validator/group.rs:860
↓ 20 callers
Method
iter_labels
(&self)
src/base/name/traits.rs:90
↓ 19 callers
Method
ends_with
Determines whether `base` is a suffix of `self`.
src/base/name/parsed.rs:157
↓ 19 callers
Function
from_slice
()
src/base/charstr.rs:1223
↓ 19 callers
Method
is_empty
(&self)
src/rdata/dnssec.rs:2177
↓ 19 callers
Method
iter
(&self)
src/dnssec/sign/records.rs:250
↓ 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:1760
↓ 19 callers
Method
to_name
Returns a domain name for this value.
src/tsig/mod.rs:1701
↓ 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:583
↓ 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
Function
fmt
(s: &[u8])
src/utils/base64.rs:591
↓ 18 callers
Method
freeze
Converts the builder into an imutable ALPN value.
src/rdata/svcb/value.rs:889
↓ 18 callers
Method
push_data
Adds a resource record to the RRset. # Panics This function will panic if the provided record data is for a different type than the RRset.
src/zonetree/types.rs:163
↓ 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/zonetree/zone.rs:94
↓ 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
extend_from_slice
Appends the given slice to the end of the buffer.
src/zonefile/inplace.rs:172
↓ 17 callers
Method
finish
Finishes the builder and returns TXT record data. If the builder is empty, appends an empty character string before returning. If that fails because
src/rdata/rfc1035/txt.rs:827
↓ 17 callers
Method
first
(&self)
src/dnssec/sign/records.rs:530
↓ 17 callers
Method
into_data
Trades the record for its record data.
src/base/record.rs:186
↓ 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:818
↓ 17 callers
Method
ok
Checks whether there was an error converting symbols.
src/base/scan.rs:799
↓ 17 callers
Method
owner_rrs
(&self)
src/dnssec/sign/records.rs:192
↓ 16 callers
Method
header_counts
Returns the header counts of the message.
src/base/message.rs:301
↓ 16 callers
Method
len
(&self)
src/base/name/label.rs:317
↓ 16 callers
Method
load
( read: &mut impl std::io::Read, )
src/zonefile/inplace.rs:129
next →
1–100 of 3,926, ranked by callers