pub struct ServerConfigBuilder { /* fields omitted */ }
Helper for constructing a ServerConfig
to be passed to EndpointBuilder::listen
to enable
incoming connections.
Construct a builder using config
as the initial state.
Construct the complete ServerConfig
.
Enable NSS-compatible cryptographic key logging to the SSLKEYLOGFILE
environment variable.
Useful for debugging encrypted communications with protocol analyzers such as Wireshark.
Set the certificate chain that will be presented to clients.
Set the application-layer protocols to accept.
When set, clients which don't declare support for at least one of the supplied protocols will be rejected.
Whether to require clients to prove they can receive packets before accepting a connection
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static