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
Method
from_slice
Converts an octets slice into a label. This will fail if the slice is longer than 63 octets.
src/base/name/label.rs:88
Method
from_slice
Creates a domain name from an octets slice. Note that the input must be in wire format, as shown below. # Examples ``` use domain::base::name::Name
src/base/name/absolute.rs:246
Method
from_slice
Creates a value for a slice of the name server identifer. The function returns an error if `slice` is longer than 65,535 octets.
src/base/opt/nsid.rs:93
Method
from_slice
Creates OPT record data from an octets slice.
src/base/opt/mod.rs:159
Method
from_slice
Creates a new value from an octets slice. Returns an error if the slice does not contain a value in wire format or is longer than 65,535 octets.
src/base/opt/algsig.rs:142
Method
from_slice
Creates a key tag value from a slice. Returns an error if `slice` does not contain a valid key tag.
src/base/opt/keytag.rs:79
Method
from_slice_index
Reads a symbol from the given position in an octets slice. Returns the symbol and the index of the end of the symbol in the slice.
src/base/scan.rs:425
Method
from_slice_mut
Converts a mutable octets slice into a label. This will fail of the slice is longer than 63 octets.
src/base/name/label.rs:99
Method
from_slice_mut_unchecked
Creates a character string from a mutable slice without checking. # Safety The caller has to make sure that `octets` is at most 255 octets long. Oth
src/base/charstr.rs:196
Method
from_slice_mut_unchecked
Creates a mutable label from the underlying slice without checking. # Safety The `slice` must be at most 63 octets long.
src/base/name/label.rs:64
Method
from_slice_unchecked
Creates a new salt value from an octets slice without checking. # Safety The passed slice must be no longer than [`Nsec3Salt::MAX_LEN`].
src/rdata/nsec3.rs:935
Method
from_slice_unchecked
Creates a new value from a slice without checking. # Safety The caller needs to make sure that the slice only contains ascii alphanumeric characters
src/rdata/caa.rs:442
Method
from_slice_unchecked
(slice: &[u8])
src/rdata/svcb/params.rs:142
Method
from_slice_unchecked
Creates new TXT record data on an octets slice without checking. # Safety The passed octets must contain correctly encoded TXT record data. See [`fr
src/rdata/rfc1035/txt.rs:157
Method
from_slice_unchecked
(data: &[u8])
src/rdata/rfc1035/null.rs:91
Method
from_slice_unchecked
(slice: &[u8])
src/base/charstr.rs:185
Method
from_slice_unchecked
Creates a message from a bytes value without checking. # Safety The methods for header access rely on the octets being at least as long as a header.
src/base/message.rs:219
Method
from_slice_unchecked
Creates a domain name from an octet slice without checking. # Safety The same rules as for [`from_octets_unchecked`] apply. [`from_octets_unchecked
src/base/name/relative.rs:136
Method
from_slice_unchecked
Creates a label from the underlying slice without any checking. # Safety The `slice` must be at most 63 octets long.
src/base/name/label.rs:54
Method
from_slice_unchecked
Creates a domain name from an octet slice without checking,
src/base/name/absolute.rs:226
Method
from_slice_unchecked
(slice: &[u8])
src/base/opt/nsid.rs:105
Method
from_slice_unchecked
Creates OPT record data from an octets slice without checking. # Safety The caller needs to ensure that the slice contains correctly encoded OPT rec
src/base/opt/mod.rs:171
Method
from_slice_unchecked
(slice: &[u8])
src/base/opt/algsig.rs:154
Method
from_slice_unchecked
(slice: &[u8])
src/base/opt/keytag.rs:92
Method
from_str
(s: &str)
src/dnssec/sign/keys/keyset.rs:1463
Method
from_str
(s: &str)
src/rdata/nsec3.rs:1036
Method
from_str
Parses a timestamp value from a string. The presentation format can either be their integer value or a specific date in `YYYYMMDDHHmmSS` format.
src/rdata/dnssec.rs:775
Method
from_str
(s: &str)
src/rdata/aaaa.rs:88
Method
from_str
(s: &str)
src/rdata/svcb/value.rs:1747
Method
from_str
(s: &str)
src/rdata/rfc1035/a.rs:112
Method
from_str
(s: &str)
src/base/charstr.rs:442
Method
from_str
(s: &str)
src/base/header.rs:439
Method
from_str
(s: &str)
src/base/serial.rs:148
Method
from_str
Parses a question from a string. The string should contain a question as the query name, class, and query type separated by white space. The query na
src/base/question.rs:152
Method
from_str
(s: &str)
src/base/iana/rcode.rs:231
Method
from_str
Parses a string into an absolute domain name. The name needs to be formatted in representation format, i.e., as a sequence of labels separated by dot
src/base/name/relative.rs:650
Method
from_str
(s: &str)
src/base/name/label.rs:544
Method
from_str
(s: &str)
src/base/name/uncertain.rs:324
Method
from_str
Parses a string into an absolute domain name. The name needs to be formatted in representation format, i.e., as a sequence of labels separated by dot
src/base/name/absolute.rs:795
Method
from_str
(s: &str)
src/tsig/mod.rs:1721
Method
from_symbols
(symbols: Sym)
src/base/name/absolute.rs:91
Method
from_target
Creates a new message builder using the given target. The target must be an [`OctetsBuilder`]. It will be truncated to zero size before appending the
src/base/message_builder.rs:189
Method
from_u64
(value: u64)
src/rdata/tsig.rs:676
Method
from_u8
Read trust anchors from a byte string. The trust anchors are `DS` or `DNSKEY` records in zonefile format.
src/dnssec/validator/anchor.rs:119
Method
from_values
Creates a parameter sequence by constructing it from values. The method expects a closure that receives an [`SvcParamsBuilder`] which it should push
src/rdata/svcb/params.rs:172
Method
gateway
Get the gateway field.
src/rdata/ipseckey.rs:163
Method
gateway_type
Get the gateway type field.
src/rdata/ipseckey.rs:153
Method
generate
Generates a new signing key. This is similar to [`new`] but generates the bits for the key from the given `rng`. It returns both the key and bits for
src/tsig/mod.rs:167
Function
generate_rrsigs_for_already_signed_zone
()
src/dnssec/sign/signatures/rrsigs.rs:1073
Function
generate_rrsigs_for_complete_zone_with_csk
()
src/dnssec/sign/signatures/rrsigs.rs:794
Function
generate_rrsigs_for_complete_zone_with_multiple_zsks
()
src/dnssec/sign/signatures/rrsigs.rs:1011
Function
generate_rrsigs_for_complete_zone_with_only_zsk
()
src/dnssec/sign/signatures/rrsigs.rs:804
Function
generate_rrsigs_for_partial_zone_at_apex
()
src/dnssec/sign/signatures/rrsigs.rs:655
Function
generate_rrsigs_for_partial_zone_beneath_apex
()
src/dnssec/sign/signatures/rrsigs.rs:660
Function
generate_rrsigs_ignores_glue_records
()
src/dnssec/sign/signatures/rrsigs.rs:749
Function
generate_rrsigs_ignores_records_outside_the_zone
()
src/dnssec/sign/signatures/rrsigs.rs:708
Function
generate_rrsigs_without_keys_generates_no_rrsigs
()
src/dnssec/sign/signatures/rrsigs.rs:634
Function
generate_rrsigs_without_keys_should_succeed_for_empty_zone
()
src/dnssec/sign/signatures/rrsigs.rs:615
Function
generated_roundtrip
()
src/crypto/openssl.rs:899
Function
generated_roundtrip
()
src/crypto/ring.rs:753
Function
generating_nsec3s_for_unordered_input_should_panic
()
src/dnssec/sign/denial/nsec3.rs:1359
Method
get
(&self, version: Version)
src/zonetree/in_memory/versioned.rs:48
Method
get_added
( &self, name: impl ToName, rtype: Rtype, )
src/zonetree/traits.rs:370
Method
get_last_additional
Returns the last additional record from the message. The method tries to parse the last record of the additional section as the provided record type.
src/base/message.rs:567
Method
get_relevant_question
Is this message for us? Returns `Some(Question)` if the given query uses OPCODE NOTIFY and has a first question with a QTYPE of `SOA`, `None` otherwi
src/net/server/middleware/notify.rs:299
Method
get_relevant_question
Is this message for us? Returns `Some(Question)` if the given query uses OPCODE QUERYY and has a first question with a QTYPE of `AXFR` or `IXFR`, `No
src/net/server/middleware/xfr/service.rs:691
Method
get_removed
( &self, name: impl ToName, rtype: Rtype, )
src/zonetree/traits.rs:378
Method
get_response
( &mut self, )
src/stelline/simple_dgram_client.rs:210
Method
get_response
( &mut self, )
src/net/client/stream.rs:323
Method
get_response
( &mut self, )
src/net/client/dgram.rs:365
Function
glue_records_are_ignored
()
src/dnssec/sign/denial/nsec3.rs:981
Function
glue_records_are_ignored
()
src/dnssec/sign/denial/nsec.rs:303
Function
good_addition
()
src/base/serial.rs:213
Method
handle_keepalive
Handle a received edns-tcp-keepalive option.
src/net/client/stream.rs:1074
Method
handle_opts
Handles received EDNS options. In particular, it processes the edns-tcp-keepalive option.
src/net/client/stream.rs:865
Function
has_compression_pointer
(bytes: &[u8])
src/rdata/mod.rs:230
Method
has_space
(&self)
src/base/scan.rs:875
Function
hash
()
src/base/name/relative.rs:1764
Function
hash
()
src/base/name/label.rs:1003
Function
hash
()
src/base/name/absolute.rs:1983
Method
hash
(&self, state: &mut H)
src/rdata/tlsa.rs:216
Method
hash
(&self, state: &mut H)
src/rdata/sshfp.rs:198
Method
hash
(&self, state: &mut H)
src/rdata/ipseckey.rs:321
Method
hash
(&self, state: &mut H)
src/rdata/zonemd.rs:222
Method
hash
(&self, state: &mut H)
src/rdata/nsec3.rs:287
Method
hash
(&self, state: &mut H)
src/rdata/tsig.rs:514
Method
hash
(&self, state: &mut H)
src/rdata/openpgpkey.rs:145
Method
hash
(&self, state: &mut H)
src/rdata/dnssec.rs:357
Method
hash
(&self, state: &mut H)
src/rdata/caa.rs:275
Method
hash
(&self, state: &mut H)
src/rdata/naptr.rs:356
Method
hash
(&self, state: &mut H)
src/rdata/cds.rs:249
Method
hash
(&self, state: &mut H)
src/rdata/svcb/params.rs:439
Method
hash
(&self, state: &mut H)
src/rdata/svcb/rdata.rs:365
Method
hash
(&self, state: &mut H)
src/rdata/rfc1035/txt.rs:380
Method
hash
(&self, state: &mut H)
src/rdata/rfc1035/hinfo.rs:168
Method
hash
(&self, state: &mut H)
src/rdata/rfc1035/null.rs:207
Method
hash
(&self, state: &mut H)
src/base/charstr.rs:526
Method
hash
(&self, state: &mut H)
src/base/question.rs:301
Method
hash
(&self, state: &mut H)
src/base/record.rs:401
Method
hash
(&self, state: &mut H)
src/base/name/uncertain.rs:372
← previous
next →
2,501–2,600 of 3,926, ranked by callers