[][src]Function tonic_openssl::incoming

pub fn incoming<S>(
    incoming: S,
    acceptor: SslAcceptor
) -> impl Stream<Item = Result<SslStream<S::Ok>, Error>> where
    S: TryStream + Unpin,
    S::Ok: AsyncRead + AsyncWrite + Send + Sync + Debug + Unpin + 'static,
    S::Error: Into<Error>, 

Wrap some incoming stream of io types with OpenSSL's SslStream type. This will take some acceptor and a stream of io types and accept connections.