pub struct ServerBuilder { /* private fields */ }
Expand description

A builder type to simplify the creation of server-side SslStreams.

Implementations§

Creates a new ServerBuilder which will use the specified identity and certificate chain for handshakes.

Creates a new ServerBuilder which will use the identity from the given PKCS #12 data.

This operation fails if PKCS #12 file contains zero or more than one identity.

This is a shortcut for the most common operation.

Create a SSL context for lower-level stream initialization.

Initiates a new SSL/TLS session over a stream.

Trait Implementations§

Formats the value using the given formatter. 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 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.