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§
Sourcefn accept_async<S: AsyncRead + AsyncWrite>(&self, stream: S) -> AcceptAsync<S> ⓘ
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.