Struct tcp_stream::RustlsConnectorConfig[][src]

pub struct RustlsConnectorConfig(_);
Expand description

Reexport rustls-connector’s TlsConnector Configuration helper for RustlsConnector

Implementations

Reexport rustls-connector’s TlsConnector

Create a new RustlsConnector from the given [ClientConfig]

Create a new RustlsConnector using the webpki-roots certs (requires webpki-roots-certs feature enabled)

Create a new RustlsConnector using the system certs (requires native-certs feature enabled)

Errors

Returns an error if we fail to load the native certs.

Methods from Deref<Target = ClientConfig>

Set the ALPN protocol list to the given protocol names. Overwrites any existing configured protocols. The first element in the protocols list is the most preferred, the last is the least preferred.

Sets persistence layer to persist.

Sets MTU to mtu. If None, the default is used. If Some(x) then x must be greater than 5 bytes.

Sets a single client authentication certificate and private key. This is blindly used for all servers that ask for client auth.

cert_chain is a vector of DER-encoded certificates, key_der is a DER-encoded RSA or ECDSA private key.

Access configuration options whose use is dangerous and requires extra care.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.