Struct tokio_rustls::TlsAcceptor [−][src]
pub struct TlsAcceptor { /* fields omitted */ }A wrapper around a rustls::ServerConfig, providing an async accept method.
Implementations
impl TlsAcceptor[src]
impl TlsAcceptor[src]pub fn accept<IO>(&self, stream: IO) -> Accept<IO>ⓘ where
IO: AsyncRead + AsyncWrite + Unpin, [src]
IO: AsyncRead + AsyncWrite + Unpin,
pub fn accept_with<IO, F>(&self, stream: IO, f: F) -> Accept<IO>ⓘ where
IO: AsyncRead + AsyncWrite + Unpin,
F: FnOnce(&mut ServerSession), [src]
IO: AsyncRead + AsyncWrite + Unpin,
F: FnOnce(&mut ServerSession),
Trait Implementations
impl Clone for TlsAcceptor[src]
impl Clone for TlsAcceptor[src]fn clone(&self) -> TlsAcceptor[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<Arc<ServerConfig>> for TlsAcceptor[src]
impl From<Arc<ServerConfig>> for TlsAcceptor[src]