Skip to main content

Module quic

Module quic 

Source
Expand description

QUIC transport implementation wrapping quinn.

StructsΒ§

CertificateLog
The CertificateHook most callers want: keep the chain, read it after.
ObservingVerifier πŸ”’
A verifier that writes down the chain it was shown, then defers to another.
QuicDialOptions
How a QUIC dial is configured, independent of any draft.
QuicTarget
Where packets go, and whose certificate to expect when they arrive.
QuicTransport
QUIC transport wrapping a quinn::Connection.
SkipVerification πŸ”’
TLS certificate verifier that skips all verification. Testing only.

EnumsΒ§

DialError
Why a QUIC dial did not produce a connection.
DialPhase
Which stage of a dial a DialError came from.

ConstantsΒ§

TLS13_CIPHER_SUITES
The TLS 1.3 cipher suites, as IANA codepoints.

FunctionsΒ§

client_config πŸ”’
The one place either transport decides what a server certificate is checked against.
conn_err πŸ”’
Convert a quinn connection error to a TransportError.
connection_lost πŸ”’
A lost connection, keeping the peer’s close code where it named one.
default_provider πŸ”’
The process-wide crypto provider, or ring if none was installed.
dial_quic
Resolve addr and dial the first address that answers.
dial_quic_to
Dial one already-resolved address, and report which ALPN the server chose.
e_at πŸ”’
Name the address a flattened multi-address failure came from.
family πŸ”’
"IPv4" or "IPv6", for the one error message that needs to say which.
handshake_failure πŸ”’
Take a handshake failure apart into codes plus prose.
host_of πŸ”’
The host part of host:port, with the port removed and brackets stripped.
initial_suite πŸ”’
The AES-128-GCM keys QUIC’s Initial packets require, from the default provider.
negotiated_alpn πŸ”’
The ALPN the server selected, if the handshake recorded one.
peer_certificates πŸ”’
Read a quinn connection’s peer certificate chain as DER, leaf first.
resolve πŸ”’
Split host:port into the name to validate against and every address it resolves to, v4 first.
restricted_provider πŸ”’
The default provider with its cipher suites narrowed to wanted.
rustls_client_config πŸ”’
The rustls half of client_config, before quinn wraps it.
show_cipher_suite
The IANA name of a TLS 1.3 cipher suite codepoint.

Type AliasesΒ§

CertificateHook
Called with a certificate chain observed during a handshake, DER, leaf first.