fn accept<'a, S>(&'a self, stream: S) -> BoxFuture<'a, anyhow::Result<TlsStream>>
    where
        S: AsyncSocket + fmt::Debug + Unpin,
    {
        BoxFuture::new(async move { self.accept_with_socket(stream).await.map(TlsStream::new) })
    }
/// Accept a connection.
///
/// This operation returns a future which is resolved when the negotiation is complete,
/// and the stream is ready to send and receive.
///
/// This version return a stream of the underlying implementation, which
/// might be useful to obtain some TLS implementation-specific data.
///
/// Practically, [`accept`](Self::accept) is usually enough.
Accept a connection.
This operation returns a future which is resolved when the negotiation is complete,
and the stream is ready to send and receive.

This version return a stream of the underlying implementation, which
might be useful to obtain some TLS implementation-specific data.

Practically, [`accept`](Self::accept) is usually enough.
Accept a connection . This operation returns a future which is resolved when the negotiation is complete and the stream is ready to send and receive . This version return a stream of the underlying implementation which might be useful to obtain some TLS implementation - specific data . Practically [ ` accept ` ] ( Self :: accept ) is usually enough .
fn accept<'a, S>(&'a self, stream: S) -> BoxFuture<'a, anyhow::Result<TlsStream>>
    where
        S: AsyncSocket + fmt::Debug + Unpin,
    {
        BoxFuture::new(async move { self.accept_with_socket(stream).await.map(TlsStream::new) })
    }
fn accept < ' a , S > ( & ' a self , stream : S ) -> BoxFuture < ' a , anyhow :: Result < TlsStream > > where S : AsyncSocket + fmt :: Debug + Unpin , { BoxFuture :: new ( async move { self . accept_with_socket ( stream ) . await . map ( TlsStream :: new ) } ) }
Accept a connection.
Accept a connection .
&'a self
stream
S
&'a self
stream
S