Trait tls_api::TlsConnectorType[][src]

pub trait TlsConnectorType: Display + Debug + 'static {
    fn builder(&self) -> Result<TlsConnectorBuilderBox>;
fn implemented(&self) -> bool;
fn supports_alpn(&self) -> bool;
fn info(&self) -> ImplInfo; }
Expand description

Similar to TlsConnector, but it is dynamic, does not require type parameter.

This can be obtained with TlsConnector::TYPE_DYN.

Required methods

Constructor a builder dynamically.

It this connector implemented?

When not implemented, all operations return error.

For example, tls-api-security-framework is available on Linux, but all operations result in error, so implemented() returns false for that implementation.

Is this implementation ALPN negotation?

Implementation version.

Implementors