Struct tls_api_rustls::TlsAcceptor [−][src]
pub struct TlsAcceptor(pub Arc<ServerConfig>);
Tuple Fields
0: Arc<ServerConfig>
Implementations
pub fn accept_impl<'a, S>(
&'a self,
stream: S
) -> impl Future<Output = Result<TlsStream<S>>> + 'a where
S: AsyncSocket,
Trait Implementations
type Builder = TlsAcceptorBuilder
type Builder = TlsAcceptorBuilder
Type of the builder for this acceptor.
type Underlying = Arc<ServerConfig>
type Underlying = Arc<ServerConfig>
Type of the underlying acceptor.
type TlsStream = TlsStream<AsyncSocketBox>
type TlsStream = TlsStream<AsyncSocketBox>
crate::TlsStream<tls_api::AsyncSocketBox>
. Read more
Get the underlying acceptor. Read more
Whether this acceptor type is implemented. Read more
Whether this implementation supports ALPN negotiation.
Whether this implementation supports construction of acceptor using a pair of a DER certificate and file pair. Read more
Whether this implementation supports construction of acceptor using PKCS #12 file. Read more
New builder from given server key. Read more
fn accept_with_socket<'a, S>(
&'a self,
stream: S
) -> BoxFuture<'a, Result<TlsStreamWithSocket<S>>> where
S: AsyncSocket,
fn accept_with_socket<'a, S>(
&'a self,
stream: S
) -> BoxFuture<'a, Result<TlsStreamWithSocket<S>>> where
S: AsyncSocket,
Accept a connection. Read more
fn accept_impl_tls_stream<'a, S>(
&'a self,
stream: S
) -> BoxFuture<'a, Result<Self::TlsStream>> where
S: AsyncSocket,
fn accept_impl_tls_stream<'a, S>(
&'a self,
stream: S
) -> BoxFuture<'a, Result<Self::TlsStream>> where
S: AsyncSocket,
Accept a connection. Read more
Dynamic (without type parameter) version of the acceptor. Read more
Dynamic (without type parameter) version of the connector.
New builder from given server key. Read more