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

ServerCredentials factory in order to configure the properties.

Implementations

Initialize a new ServerCredentialsBuilder.

Set the PEM encoded client root certificate to verify client’s identity. If force_client_auth is set to true, the authenticity of client check will be enforced.

Add a PEM encoded server side certificate and key.

Finalize the ServerCredentialsBuilder and build the ServerCredentials.

Trait Implementations

Executes the destructor for this type. 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.