Struct tls_api_rustls::TlsAcceptor
source · [−]pub struct TlsAcceptor(pub Arc<ServerConfig>);
Tuple Fields
0: Arc<ServerConfig>
Implementations
sourceimpl TlsAcceptor
impl TlsAcceptor
pub fn accept_impl<'a, S>(
&'a self,
stream: S
) -> impl Future<Output = Result<TlsStream<S>>> + 'a where
S: AsyncSocket,
Trait Implementations
sourceimpl TlsAcceptor for TlsAcceptor
impl TlsAcceptor for TlsAcceptor
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
sourcefn underlying_mut(&mut self) -> &mut Self::Underlying
fn underlying_mut(&mut self) -> &mut Self::Underlying
Get the underlying acceptor. Read more
sourceconst IMPLEMENTED: bool = true
const IMPLEMENTED: bool = true
Whether this acceptor type is implemented. Read more
sourceconst SUPPORTS_ALPN: bool = true
const SUPPORTS_ALPN: bool = true
Whether this implementation supports ALPN negotiation.
sourceconst SUPPORTS_DER_KEYS: bool = true
const SUPPORTS_DER_KEYS: bool = true
Whether this implementation supports construction of acceptor using a pair of a DER certificate and file pair. Read more
sourceconst SUPPORTS_PKCS12_KEYS: bool = false
const SUPPORTS_PKCS12_KEYS: bool = false
Whether this implementation supports construction of acceptor using PKCS #12 file. Read more
sourcefn builder_from_der_key(cert: &[u8], key: &[u8]) -> Result<TlsAcceptorBuilder>
fn builder_from_der_key(cert: &[u8], key: &[u8]) -> Result<TlsAcceptorBuilder>
New builder from given server key. Read more
sourcefn 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
sourcefn 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
sourceconst TYPE_DYN: &'static (dyn TlsAcceptorType + 'static) = const TYPE_DYN: &'static dyn TlsAcceptorType =
&TlsAcceptorTypeImpl::(marker::PhantomData);
const TYPE_DYN: &'static (dyn TlsAcceptorType + 'static) = const TYPE_DYN: &'static dyn TlsAcceptorType =
&TlsAcceptorTypeImpl::(marker::PhantomData);
Dynamic (without type parameter) version of the acceptor. Read more
sourcefn into_dyn(self) -> TlsAcceptorBox
fn into_dyn(self) -> TlsAcceptorBox
Dynamic (without type parameter) version of the connector.
Auto Trait Implementations
impl !RefUnwindSafe for TlsAcceptor
impl Send for TlsAcceptor
impl Sync for TlsAcceptor
impl Unpin for TlsAcceptor
impl !UnwindSafe for TlsAcceptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more