Struct tls_api_stub::TlsAcceptor
source · [−]pub struct TlsAcceptor(_);
Expand description
Non-instantiatable.
Trait Implementations
sourceimpl TlsAcceptor for TlsAcceptor
impl TlsAcceptor for TlsAcceptor
type Builder = TlsAcceptorBuilder
type Builder = TlsAcceptorBuilder
Type of the builder for this acceptor.
sourceconst IMPLEMENTED: bool = false
const IMPLEMENTED: bool = false
Whether this acceptor type is implemented. Read more
sourceconst SUPPORTS_ALPN: bool = false
const SUPPORTS_ALPN: bool = false
Whether this implementation supports ALPN negotiation.
sourceconst 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. 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
type Underlying = Void
type Underlying = Void
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
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.
sourcefn builder_from_der_key(cert: &[u8], key: &[u8]) -> Result<Self::Builder, Error>
fn builder_from_der_key(cert: &[u8], key: &[u8]) -> Result<Self::Builder, Error>
New builder from given server key. Read more
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