pub struct SslAcceptor(_);
Expand description

A type which wraps server-side streams in a TLS session.

OpenSSL’s default configuration is highly insecure. This connector manages the OpenSSL structures, configuring cipher suites, session options, and more.

Implementations

Creates a new builder configured to connect to non-legacy clients. This should generally be considered a reasonable default choice.

This corresponds to the intermediate configuration of version 5 of Mozilla’s server side TLS recommendations. See its documentation for more details on specifics.

Creates a new builder configured to connect to modern clients.

This corresponds to the modern configuration of version 5 of Mozilla’s server side TLS recommendations. See its documentation for more details on specifics.

Requires OpenSSL 1.1.1 or LibreSSL 3.4.0 or newer.

Creates a new builder configured to connect to non-legacy clients. This should generally be considered a reasonable default choice.

This corresponds to the intermediate configuration of version 4 of Mozilla’s server side TLS recommendations. See its documentation for more details on specifics.

Creates a new builder configured to connect to modern clients.

This corresponds to the modern configuration of version 4 of Mozilla’s server side TLS recommendations. See its documentation for more details on specifics.

Initiates a server-side TLS session on a stream.

Consumes the SslAcceptor, returning the inner raw SslContext.

Returns a shared reference to the inner raw SslContext.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.