Trait tls_api::TlsConnectorType
source · [−]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
fn builder(&self) -> Result<TlsConnectorBuilderBox>
fn builder(&self) -> Result<TlsConnectorBuilderBox>
Constructor a builder dynamically.
fn implemented(&self) -> bool
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.
fn supports_alpn(&self) -> bool
fn supports_alpn(&self) -> bool
Is this implementation ALPN negotation?