Trait tls_api::TlsAcceptorBuilder[][src]

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>; }

A builder for TlsAcceptors.

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.

Loading content...

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.

Loading content...

Implementors

Loading content...