Trait tls_api::TlsAcceptorBuilder [−][src]
A builder for TlsAcceptor
s.
Associated Types
type Acceptor: TlsAcceptor
[src]
Type of acceptor produced by this builder.
type Underlying
[src]
Type of the underlying builder.
Underlying builder might be needed to perform custom setup when it is not supported by common API.
Required methods
fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
[src]
Specify ALPN protocols for negotiation.
This operation returns an error if the implemenation does not support ALPN.
Whether ALPN is supported, can be queried using TlsAcceptor::SUPPORTS_ALPN
.
fn underlying_mut(&mut self) -> &mut Self::Underlying
[src]
Get the underlying builder.
API intentionally exposes the underlying acceptor builder to allow fine tuning not possible in common API.
fn build(self) -> Result<Self::Acceptor>
[src]
Finish the acceptor construction.