pub struct Config { /* fields omitted */ }
Stores configuration shared between multiple connections.
Creates a config object with the given version.
Configures the given certificate chain.
The content of file
is parsed as a PEM-encoded leaf certificate,
followed by optional intermediate certificates.
Configures the given private key.
The content of file
is parsed as a PEM-encoded private key.
Configures whether to verify the peer's certificate.
Enables logging of secrets.
A connection's cryptographic secrets will be logged in the keylog
format in the file pointed to by the SSLKEYLOGFILE
environment
variable.
Configures the list of support application protocolos.
On the client this configures the list of protocols to send to the
server as part of the ALPN extension.
On the server this configures the list of supported protocols to match
against the client-supplied list.
Sets the idle_timeout
transport parameter.
Sets the stateless_reset_token
transport parameter.
Sets the max_packet_size transport
parameter.
Sets the initial_max_data
transport parameter.
Sets the initial_max_stream_data_bidi_local
transport parameter.
Sets the initial_max_stream_data_bidi_remote
transport parameter.
Sets the initial_max_stream_data_uni
transport parameter.
Sets the initial_max_streams_bidi
transport parameter.
Sets the initial_max_streams_uni
transport parameter.
Sets the ack_delay_exponent
transport parameter.
Sets the max_ack_delay
transport parameter.
Sets the disable_migration
transport parameter.
π¬ 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