Struct actix_net::ssl::NativeTlsAcceptor [−][src]
pub struct NativeTlsAcceptor<T> { /* fields omitted */ }Support SSL connections via native-tls package
tls feature enables NativeTlsAcceptor type
Methods
impl<T: AsyncRead + AsyncWrite> NativeTlsAcceptor<T>[src]
impl<T: AsyncRead + AsyncWrite> NativeTlsAcceptor<T>pub fn new(acceptor: TlsAcceptor) -> Self[src]
pub fn new(acceptor: TlsAcceptor) -> SelfCreate NativeTlsAcceptor instance
Trait Implementations
impl<T: AsyncRead + AsyncWrite> Clone for NativeTlsAcceptor<T>[src]
impl<T: AsyncRead + AsyncWrite> Clone for NativeTlsAcceptor<T>fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: AsyncRead + AsyncWrite> NewService for NativeTlsAcceptor<T>[src]
impl<T: AsyncRead + AsyncWrite> NewService for NativeTlsAcceptor<T>type Request = T
Requests handled by the service
type Response = TlsStream<T>
Responses given by the service
type Error = Error
Errors produced by the service
type Service = NativeTlsAcceptorService<T>
The Service value created by this factory
type InitError = ()
Errors produced while building a service.
type Future = FutureResult<Self::Service, Self::InitError>
The future of the Service instance.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate and return a new service value asynchronously.
Auto Trait Implementations
impl<T> Send for NativeTlsAcceptor<T> where
T: Send,
impl<T> Send for NativeTlsAcceptor<T> where
T: Send, impl<T> Sync for NativeTlsAcceptor<T> where
T: Sync,
impl<T> Sync for NativeTlsAcceptor<T> where
T: Sync,