pub fn listener_select_proto<R, I>(
    inner: R,
    protocols: I
) -> ListenerSelectFuture<R, I::Item> where
    R: AsyncRead + AsyncWrite,
    I: IntoIterator,
    I::Item: AsRef<[u8]>,
Expand description

Returns a Future that negotiates a protocol on the given I/O stream for a peer acting as the listener (or responder).

This function is given an I/O stream and a list of protocols and returns a computation that performs the protocol negotiation with the remote. The returned Future resolves with the name of the negotiated protocol and a Negotiated I/O stream.