Struct tokio_rustls::TlsAcceptor [−][src]
pub struct TlsAcceptor { /* fields omitted */ }
Expand description
A wrapper around a rustls::ServerConfig
, providing an async accept
method.
Implementations
pub fn accept<IO>(&self, stream: IO) -> Accept<IO>ⓘ where
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),
Trait Implementations
Performs the conversion.
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
Mutably borrows from an owned value. Read more