pub struct ServerParts<'a> { /* private fields */ }Expand description
What a ServerBuilder collects: the TlsSettings and the two inputs, the identity to
present and how client certificates are treated. Start with ServerBuilder::new.
Session resumption is off unless Policy::allow_resumption is set, which then keeps
rustls’s default session cache and TLS 1.3 tickets. A policy’s access control list reads each
connection’s addresses from the scope this crate’s accept helpers set
(accept, with_addresses); a host whose
connections reach rustls another way (quinn) takes configs.
The builder’s non_defaults() is over the TlsSettings, so its keys carry the policy.
prefix (policy.tls_versions) and alpn is listed when set; Built::non_defaults reports
the Policy’s own (tls_versions).
Trait Implementations§
Source§impl<'a> Debug for ServerParts<'a>
impl<'a> Debug for ServerParts<'a>
Source§impl TryFrom<ServerParts<'_>> for Built<ServerConfig>
impl TryFrom<ServerParts<'_>> for Built<ServerConfig>
Source§fn try_from(parts: ServerParts<'_>) -> Result<Self, PeerError>
fn try_from(parts: ServerParts<'_>) -> Result<Self, PeerError>
The configuration, shared by every connection it accepts.
§Errors
PeerError::Certificate, PeerError::TrustPattern, PeerError::CaFile,
PeerError::Unsupported for trust only clients apply, PeerError::Policy or
PeerError::Tls when the configuration cannot be built.