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
(stream: stream::Config)
src/net/client/multi_stream.rs:86
Method
from
(_: LongOptData)
src/net/client/request.rs:704
Method
from
(err: QueryError)
src/net/client/dgram.rs:444
Method
from
(_: PushError)
src/net/server/batcher.rs:449
Method
from
(_: PushError)
src/net/server/service.rs:261
Method
from
(ctx: UdpTransportContext)
src/net/server/message.rs:148
Method
from
(err: ParseError)
src/net/server/middleware/mandatory.rs:399
Method
from
(err: PushError)
src/net/server/middleware/xfr/batcher.rs:51
Method
from
(err: ParseError)
src/net/server/middleware/xfr/data_provider.rs:33
Method
from
(err: io::Error)
src/resolv/lookup/srv.rs:450
Method
from
(name: SearchSuffix)
src/resolv/stub/conf.rs:634
Method
from
(message: Message<Bytes>)
src/resolv/stub/mod.rs:484
Method
from
(src: &'a str)
src/zonefile/inplace.rs:152
Method
from_addrs
Creates a new value from a list of IPv4 addresses. The function will fail if the iterator returns more than 16,383 addresses or if the octets builder
src/rdata/svcb/value.rs:1296
Method
from_be_bytes
(bytes: [u8; 4])
src/base/serial.rs:66
Method
from_builder
Creates a character string builder from an octet sequence. If the octet sequence is longer than 255 octets, an error is returned.
src/base/charstr.rs:751
Method
from_builder
Creates a new domain name builder atop an existing octets builder. The function checks that whatever is in the builder already consititutes a correct
src/base/name/builder.rs:86
Method
from_builder_unchecked
Creates a character string builder from an octet sequence unchecked. Since the buffer may already be longer than it is allowed to be, this is unsafe.
src/base/charstr.rs:743
Method
from_builder_unchecked
Creates a new domain name builder from an octets builder. Whatever is in the buffer already is considered to be a relative domain name. Since that ma
src/base/name/builder.rs:53
Method
from_bytes
Import a key pair from bytes into OpenSSL.
src/crypto/openssl.rs:430
Method
from_bytes
Import a key pair from bytes.
src/crypto/sign.rs:317
Method
from_bytes
Import a key pair from bytes into Ring.
src/crypto/ring.rs:378
Method
from_bytes
Creates a new salt from a bytes value.
src/rdata/nsec3.rs:915
Method
from_cause
( stelline: &'a Stelline, step_value: &'a CurrStepValue, cause: StellineErrorCause,
src/stelline/client.rs:53
Method
from_chars
Reads a symbol from a character source. Returns the next symbol in the source, `Ok(None)` if the source has been exhausted, or an error if there wasn
src/base/scan.rs:366
Method
from_chars
Creates a domain name from a sequence of characters. The sequence must result in a domain name in representation format. That is, its labels should b
src/base/name/relative.rs:109
Method
from_chars
Creates a label from a sequence of chars.
src/base/name/label.rs:482
Method
from_chars
Creates a domain name from a sequence of characters. The sequence must result in a domain name in zone file representation. That is, its labels shoul
src/base/name/uncertain.rs:126
Method
from_chars
Creates a domain name from a sequence of characters. The sequence must result in a domain name in representation format. That is, its labels should b
src/base/name/absolute.rs:147
Method
from_conf
Creates a new resolver using the given configuration.
src/resolv/stub/mod.rs:94
Method
from_days
(days: u16)
src/base/record.rs:1273
Method
from_dnskey
Create a public key from a [`Dnskey`].
src/crypto/openssl.rs:173
Method
from_dnskey
( dnskey: &Dnskey<impl AsRef<[u8]>>, )
src/crypto/common.rs:191
Method
from_dnskey
Create a public key from a [`Dnskey`].
src/crypto/ring.rs:150
Method
from_duration_lossy
(duration: Duration)
src/base/record.rs:1294
Method
from_hmac_algorithm
Creates a value from a HMAC algorithm. This will panic if `alg` is not one of the recognized algorithms.
src/tsig/mod.rs:1666
Method
from_hours
(hours: u32)
src/base/record.rs:1260
Method
from_iter
(iter: T)
src/dnssec/sign/records.rs:358
Method
from_keys
Creates a new value from a list of keys. The created value will contain all the keys returned by the iterator in the order provided. The function doe
src/rdata/svcb/value.rs:494
Method
from_label
(label: &Label)
src/base/name/label.rs:474
Method
from_message
Get the TSIG record from a message. Checks that there is exactly one TSIG record in the additional section, that it is the last record in this sectio
src/tsig/mod.rs:1472
Method
from_message
(msg: &Message<Octs>)
src/net/server/single_service.rs:82
Method
from_mins
(minutes: u32)
src/base/record.rs:1247
Method
from_name
Creates a value from its domain name representation. Returns `None` if the name doesn’t represent a known algorithm.
src/tsig/mod.rs:1647
Method
from_octet
(ch: u8)
src/base/scan.rs:599
Method
from_octets
Crates a new salt value from the given octets. Returns succesfully if `octets` can indeed be used as a character string, i.e., it is not longer than
src/rdata/nsec3.rs:848
Method
from_octets
(octets: Octs)
src/rdata/dnssec.rs:2071
Method
from_octets
Parses a CAA tag from an octets sequence while enforcing the same validation as [`CaaTag::new`].
src/rdata/caa.rs:409
Method
from_octets
Creates a new mandatory value from an octets sequence. The function checks that the octets sequence contains a properly encoded value of at most 65,5
src/rdata/svcb/value.rs:454
Method
from_octets
Creates a parameter sequence from an octets sequence. The method checks that `octets` contains a parameter sequence that is correctly encoded in wire
src/rdata/svcb/params.rs:104
Method
from_octets
Creates new TXT record data from its encoded content. The `octets` sequence most contain correctly encoded TXT record data. That is, it must contain
src/rdata/rfc1035/txt.rs:122
Method
from_octets
(a: u8, b: u8, c: u8, d: u8)
src/rdata/rfc1035/a.rs:50
Method
from_octets
Creates new NULL record data from the given octets. The function will fail if `data` is longer than 65,535 octets.
src/rdata/rfc1035/null.rs:58
Method
from_octets
Creates a new character string from an octets value. Returns succesfully if `octets` can indeed be used as a character string, i.e., it is not longer
src/base/charstr.rs:143
Method
from_octets
Creates generic record data from a bytes value contain the data.
src/base/rdata.rs:257
Method
from_octets
Creates a message from an octets sequence. This fails if the slice is too short to even contain a complete header section. No further checks are don
src/base/message.rs:168
Method
from_octets
Creates a relative domain name from an octets sequence. This checks that `octets` contains a properly encoded relative domain name and fails if it do
src/base/name/relative.rs:65
Method
from_octets
Creates a new domain name from its wire format representation. The returned name will correctly be identified as an absolute or relative name.
src/base/name/uncertain.rs:69
Method
from_octets
Creates a domain name from an octet sequence. This will only succeed if `octets` contains a properly encoded absolute domain name in wire format. Bec
src/base/name/absolute.rs:83
Method
from_octets
(octets: [u8; 8])
src/base/opt/cookie.rs:305
Method
from_octets
Creates a value from the ocets of the name server identifier. The function returns an error if `octets` is longer than 65,535 octets.
src/base/opt/nsid.rs:60
Method
from_octets
Creates a value from the padding octets. Returns an error if `octets` are longer than 65,535 octets.
src/base/opt/padding.rs:47
Method
from_octets
Creates OPT record data from an octets sequence. The function checks whether the octets contain a sequence of options. It does not check whether the
src/base/opt/mod.rs:132
Method
from_octets
Creates a new value from an octets sequence. 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:95
Method
from_octets
Creates a new value from its content in wire format. The function returns an error if the octets do not encode a valid edns-key-tag option: the lengt
src/base/opt/keytag.rs:46
Method
from_octets_unchecked
Creates a salt value from octets without length check. As this can break the guarantees made by the type, it is unsafe.
src/rdata/nsec3.rs:862
Method
from_octets_unchecked
Creates a CAA tag from octets without validation. # Safety The caller must ensure `octets` consists only of ASCII alphanumeric characters and is no
src/rdata/caa.rs:423
Method
from_octets_unchecked
Creates a new value from an octets sequence without checking. # Safety The caller has to ensure that `octets` contains a properly formatted paramete
src/rdata/svcb/params.rs:118
Method
from_octets_unchecked
Creates new TXT record data without checking. # Safety The passed octets must contain correctly encoded TXT record data. See [`from_octets][Self::fr
src/rdata/rfc1035/txt.rs:136
Method
from_octets_unchecked
Creates new NULL record data without checking. # Safety The caller has to ensure that `data` is at most 65,535 octets long.
src/rdata/rfc1035/null.rs:71
Method
from_octets_unchecked
Creates a character string from octets without length check. # Safety The caller has to make sure that `octets` is at most 255 octets long. Otherwis
src/base/charstr.rs:157
Method
from_octets_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:195
Method
from_octets_unchecked
Creates a relative domain name from octets without checking. Since the content of the octets sequence can be anything, really, this is an unsafe func
src/base/name/relative.rs:57
Method
from_octets_unchecked
Creates a domain name from the underlying octets without any check. Since this will allow to actually construct an incorrectly encoded domain name va
src/base/name/absolute.rs:74
Method
from_octets_unchecked
Creates a value from the name server identifier without checking. # Safety The caller has to make sure that `octets` is no longer than 65,535 octets
src/base/opt/nsid.rs:74
Method
from_octets_unchecked
Creates a value from the padding octets without checking. # Safety The caller needs to ensure that `octets` are not longer than 65,535 octets.
src/base/opt/padding.rs:61
Method
from_octets_unchecked
Creates OPT record data from octets without checking. # Safety The caller needs to ensure that the slice contains correctly encoded OPT record data.
src/base/opt/mod.rs:144
Method
from_octets_unchecked
Creates a new value from an octets sequence without checking. # Safety The caller needs to make sure that the slice contains a sequence of 16 bit va
src/base/opt/algsig.rs:109
Method
from_octets_unchecked
Creates a new value from its wire-format content without checking. # Safety The caller needs to ensure that `octets` is a valid key tag. The length
src/base/opt/keytag.rs:61
Method
from_params
Creates a parameter builder from an existing parameter sequence. The function creates a new empty builder and copies over the content of `params`. It
src/rdata/svcb/params.rs:908
Method
from_parts
Creates a new apex.
src/zonetree/in_memory/nodes.rs:56
Method
from_parts
(rcode: Rcode, ext: u8)
src/base/iana/rcode.rs:544
Method
from_parts
Creates a new config from the two portions.
src/net/client/dgram_stream.rs:41
Method
from_rcode
(rcode: Rcode)
src/base/iana/rcode.rs:529
Method
from_rdata
(srv: &Srv<impl ToName>)
src/resolv/lookup/srv.rs:330
Method
from_reader
Read trust anchors from a file (or in general a `Read` trait). The trust anchors are `DS` or `DNSKEY` records in zonefile format.
src/dnssec/validator/anchor.rs:92
Method
from_record
Creates a new record from a compatible record. This function only exists because the equivalent `From` implementation is currently not possible,
src/base/record.rs:126
Method
from_record
Converts a regular record into an OPT record
src/base/opt/mod.rs:567
Method
from_sec_algs
Creates a new value from a sequence of algorithms. The operation will fail if the iterator returns more than 32,767 algorithms.
src/base/opt/algsig.rs:120
Method
from_secs
(secs: u32)
src/base/record.rs:1235
Method
from_slice
Creates a new salt value from an octet slice.
src/rdata/nsec3.rs:922
Method
from_slice
Creates a value from an octet slice. This slice should contain the octets of the value in network byte order. # Panics The function panics if the s
src/rdata/tsig.rs:689
Method
from_slice
Parses a CAA tag from a slice, validating it against the same rules as [`CaaTag::new`].
src/rdata/caa.rs:431
Method
from_slice
Creates a new mandatory value from an octets slice. The function checks that the octets slice contains a properly encoded value of at most 65,535 oct
src/rdata/svcb/value.rs:466
Method
from_slice
Creates a parameter sequence from an octets slice. The method checks that `slice` contains a parameter sequence that is correctly encoded in wire for
src/rdata/svcb/params.rs:130
Method
from_slice
Creates new TXT record data on an octets slice. The slice must contain correctly encoded TXT record data, that is a sequence of encoded character str
src/rdata/rfc1035/txt.rs:146
Method
from_slice
Creates new NULL record data from an octets slice. The function will fail if `data` is longer than 65,535 octets.
src/rdata/rfc1035/null.rs:80
Method
from_slice
Creates a character string from an octets slice.
src/base/charstr.rs:167
Method
from_slice
Creates a message from an octets slice. This fails if the slice is too short to even contain a complete header section. No further checks are done,
src/base/message.rs:207
Method
from_slice
Creates a relative domain name from an octet slice. Note that the input must be in wire format, as shown below. # Example ``` use domain::base::nam
src/base/name/relative.rs:151
← previous
next →
2,401–2,500 of 3,926, ranked by callers