[][src]Trait tls_api::TlsAcceptor

pub trait TlsAcceptor: Sized + Sync + Send + 'static {
    type Builder: TlsAcceptorBuilder<Acceptor = Self>;
    fn accept<'a, S>(
        &'a self,
        stream: S
    ) -> Pin<Box<dyn Future<Output = Result<TlsStream<S>>> + Send + 'a>>
    where
        S: AsyncRead + AsyncWrite + Debug + Unpin + Send + Sync + 'static
; fn supports_alpn() -> bool { ... } }

A builder for server-side TLS connections.

Associated Types

type Builder: TlsAcceptorBuilder<Acceptor = Self>

Loading content...

Required methods

fn accept<'a, S>(
    &'a self,
    stream: S
) -> Pin<Box<dyn Future<Output = Result<TlsStream<S>>> + Send + 'a>> where
    S: AsyncRead + AsyncWrite + Debug + Unpin + Send + Sync + 'static, 

Loading content...

Provided methods

Loading content...

Implementors

Loading content...