Skip to main content

Module tls

Module tls 

Source
Expand description

TLS-wrapped TCP sources and sinks.

TokioTls mirrors the shape of datum::TokioTcp, but wraps each TCP byte stream in a tokio-rustls TLS client or server session. Callers supply their own rustls client/server configs so certificate policy stays explicit.

Re-exports§

pub use tokio_rustls::rustls;

Structs§

TlsBinding
A materialized TLS listener binding.
TlsCarrierDiagnosticCounts
Snapshot of TLS listener resilience counters.
TlsCarrierDiagnostics
Shared collector for TLS listener resilience counters.
TlsConnection
A materialized TLS connection.
TlsIncomingConnection
A TLS connection accepted by TokioTls::bind.
TokioTls
TLS-over-TCP stream entry points.

Type Aliases§

Tls
Alias for TokioTls.
TlsByteSink
TLS byte sink used by accepted and outgoing TLS connections.
TlsByteSource
TLS byte source used by accepted and outgoing TLS connections.