Struct native_tls::TlsConnectorBuilder [] [src]

pub struct TlsConnectorBuilder(_);

A builder for TlsConnectors.

Methods

impl TlsConnectorBuilder
[src]

[src]

Sets the identity to be used for client certificate authentication.

[src]

Sets the protocols which the connector will support.

The protocols supported by default are currently TLS 1.0, TLS 1.1, and TLS 1.2, though this is subject to change.

[src]

Adds a certificate to the set of roots that the connector will trust.

The connector will use the system's trust root by default. This method can be used to add to that set when communicating with servers not trusted by the system.

[src]

Consumes the builder, returning a TlsConnector.

Trait Implementations

impl TlsConnectorBuilderExt for TlsConnectorBuilder
[src]

[src]

Sets a callback function which decides if the server's certificate chain is to be trusted. Read more