[][src]Struct native_tls::TlsConnectorBuilder

pub struct TlsConnectorBuilder(_);

A builder for TlsConnectors.

Methods

impl TlsConnectorBuilder
[src]

Sets the identity to be used for client certificate authentication.

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.

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.

Consumes the builder, returning a TlsConnector.

Trait Implementations

impl TlsConnectorBuilderExt for TlsConnectorBuilder
[src]

Important traits for &'a mut W

Deprecated since 0.1.2

: use add_root_certificate

Deprecated

Auto Trait Implementations

impl Send for TlsConnectorBuilder

impl Sync for TlsConnectorBuilder

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut W

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut W

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more