Trait SslAcceptorExt

Source
pub trait SslAcceptorExt {
    // Required method
    fn accept_async<S: AsyncRead + AsyncWrite>(
        &self,
        stream: S,
    ) -> AcceptAsync<S> ;
}
Expand description

Extension for SslAcceptor to allow connections to be accepted asynchronously.

Required Methods§

Source

fn accept_async<S: AsyncRead + AsyncWrite>(&self, stream: S) -> AcceptAsync<S>

Asynchronously accept the connection

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SslAcceptorExt for SslAcceptor

Source§

fn accept_async<S>(&self, stream: S) -> AcceptAsync<S>
where S: AsyncRead + AsyncWrite,

Implementors§