Struct tls_api_native_tls::TlsAcceptor
source · [−]pub struct TlsAcceptor(pub TlsAcceptor);
Tuple Fields
0: TlsAcceptor
Trait Implementations
sourceimpl TlsAcceptor for TlsAcceptor
impl TlsAcceptor for TlsAcceptor
sourceconst SUPPORTS_ALPN: bool = false
const SUPPORTS_ALPN: bool = false
Server side of native-tls
does not support ALPN,
because security-framework
does not support it.
type Builder = TlsAcceptorBuilder
type Builder = TlsAcceptorBuilder
Type of the builder for this acceptor.
type Underlying = TlsAcceptor
type Underlying = TlsAcceptor
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_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 = true
const SUPPORTS_PKCS12_KEYS: bool = true
Whether this implementation supports construction of acceptor using PKCS #12 file. Read more
sourcefn builder_from_pkcs12(pkcs12: &[u8], passphrase: &str) -> Result<Self::Builder>
fn builder_from_pkcs12(pkcs12: &[u8], passphrase: &str) -> Result<Self::Builder>
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