Trait TlsConnectorType

Source
pub trait TlsConnectorType:
    Display
    + Debug
    + 'static {
    // Required methods
    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§

Source

fn builder(&self) -> Result<TlsConnectorBuilderBox>

Constructor a builder dynamically.

Source

fn implemented(&self) -> bool

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.

Source

fn supports_alpn(&self) -> bool

Is this implementation ALPN negotation?

Source

fn info(&self) -> ImplInfo

Implementation version.

Implementors§