/// Initializes a client peer connection based on an accepted connection
/// socket. The socket can be obtained from a stream returned by `listen`.
Initializes a client peer connection based on an accepted connection
socket. The socket can be obtained from a stream returned by `listen`.
Initializes a client peer connection based on an accepted connection socket . The socket can be obtained from a stream returned by ` listen ` .
pub fn serve<S>(&mut self, sock: S) -> Connection<S, T, E>
    where
        S: AsyncRead + AsyncWrite,
    {
        Connection {
            h2: self.h2.serve(sock),
        }
    }
pub fn serve < S > ( & mut self , sock : S ) -> Connection < S , T , E > where S : AsyncRead + AsyncWrite , { Connection { h2 : self . h2 . serve ( sock ) , } }
Initializes a client peer connection based on an accepted connection
socket.
Initializes a client peer connection based on an accepted connection socket .
&mut self
sock
S