Struct actix_net::ssl::RustlsAcceptor [−][src]
pub struct RustlsAcceptor<T> { /* fields omitted */ }
Support SSL
connections via rustls package
rust-tls
feature enables RustlsAcceptor
type
Methods
impl<T: AsyncRead + AsyncWrite> RustlsAcceptor<T>
[src]
impl<T: AsyncRead + AsyncWrite> RustlsAcceptor<T>
pub fn new(config: ServerConfig) -> Self
[src]
pub fn new(config: ServerConfig) -> Self
Create RustlsAcceptor
new service
Trait Implementations
impl<T> Clone for RustlsAcceptor<T>
[src]
impl<T> Clone for RustlsAcceptor<T>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns 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 RustlsAcceptor<T>
[src]
impl<T: AsyncRead + AsyncWrite> NewService for RustlsAcceptor<T>
type Request = T
Requests handled by the service
type Response = TlsStream<T, ServerSession>
Responses given by the service
type Error = Error
Errors produced by the service
type Service = RustlsAcceptorService<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::Future
Create and return a new service value asynchronously.
Auto Trait Implementations
impl<T> Send for RustlsAcceptor<T> where
T: Send,
impl<T> Send for RustlsAcceptor<T> where
T: Send,
impl<T> Sync for RustlsAcceptor<T> where
T: Sync,
impl<T> Sync for RustlsAcceptor<T> where
T: Sync,