pub trait TlsAcceptorBuilder: Sized + Sync + Send + 'static {
    type Acceptor: TlsAcceptor;
    type Underlying;

    fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>;
    fn underlying_mut(&mut self) -> &mut Self::Underlying;
    fn build(self) -> Result<Self::Acceptor>;
}
Expand description

A builder for TlsAcceptors.

Required Associated Types

Type of acceptor produced by this builder.

Type of the underlying builder.

Underlying builder might be needed to perform custom setup when it is not supported by common API.

Required Methods

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.

Get the underlying builder.

API intentionally exposes the underlying acceptor builder to allow fine tuning not possible in common API.

Finish the acceptor construction.

Implementors