pub struct TlsAcceptor(pub SecureTransportTlsAcceptorBuilder);
Tuple Fields§
§0: SecureTransportTlsAcceptorBuilder
Trait Implementations§
Source§impl TlsAcceptor for TlsAcceptor
impl TlsAcceptor for TlsAcceptor
Source§const IMPLEMENTED: bool = false
const IMPLEMENTED: bool = false
Whether this acceptor type is implemented. Read more
Source§const SUPPORTS_ALPN: bool = false
const SUPPORTS_ALPN: bool = false
Whether this implementation supports ALPN negotiation.
Source§const SUPPORTS_DER_KEYS: bool = false
const SUPPORTS_DER_KEYS: bool = false
Whether this implementation supports construction of acceptor using
a pair of a DER certificate and file pair.
Source§const SUPPORTS_PKCS12_KEYS: bool = true
const SUPPORTS_PKCS12_KEYS: bool = true
Whether this implementation supports construction of acceptor using
PKCS #12 file.
Source§type Builder = TlsAcceptorBuilder
type Builder = TlsAcceptorBuilder
Type of the builder for this acceptor.
Source§type Underlying = Void
type Underlying = Void
Type of the underlying acceptor.
Source§type TlsStream = TlsStream<AsyncSocketBox>
type TlsStream = TlsStream<AsyncSocketBox>
crate::TlsStream<tls_api::AsyncSocketBox>
. Read moreSource§fn underlying_mut(&mut self) -> &mut Self::Underlying
fn underlying_mut(&mut self) -> &mut Self::Underlying
Get the underlying acceptor. Read more
Source§fn builder_from_pkcs12(
pkcs12: &[u8],
passphrase: &str,
) -> Result<TlsAcceptorBuilder>
fn builder_from_pkcs12( pkcs12: &[u8], passphrase: &str, ) -> Result<TlsAcceptorBuilder>
New builder from given server key. Read more
Source§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
Source§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
Source§const TYPE_DYN: &'static dyn TlsAcceptorType = _
const TYPE_DYN: &'static dyn TlsAcceptorType = _
Dynamic (without type parameter) version of the acceptor. Read more
Source§fn into_dyn(self) -> TlsAcceptorBox
fn into_dyn(self) -> TlsAcceptorBox
Dynamic (without type parameter) version of the connector.
Auto Trait Implementations§
impl Freeze for TlsAcceptor
impl RefUnwindSafe for TlsAcceptor
impl Send for TlsAcceptor
impl Sync for TlsAcceptor
impl Unpin for TlsAcceptor
impl UnwindSafe for TlsAcceptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more