[][src]Trait tls_api::TlsAcceptor

pub trait TlsAcceptor: Sized + Sync + Send + 'static {
type Builder: TlsAcceptorBuilder<Acceptor = Self>;
    fn accept<S>(&self, stream: S) -> Result<TlsStream<S>, HandshakeError<S>>
    where
        S: Read + Write + Debug + 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<S>(&self, stream: S) -> Result<TlsStream<S>, HandshakeError<S>> where
    S: Read + Write + Debug + Send + Sync + 'static, 

Loading content...

Provided methods

Loading content...

Implementors

Loading content...