pub fn accept<S>(&self, stream: S) -> Result<TlsStream<S>, HandshakeError<S>>
    where
        S: io::Read + io::Write,
    {
        let s = self.0.accept(stream)?;
        Ok(TlsStream(s))
    }
/// Initiates a TLS handshake.
///
/// If the socket is nonblocking and a `WouldBlock` error is returned during
/// the handshake, a `HandshakeError::WouldBlock` error will be returned
/// which can be used to restart the handshake when the socket is ready
/// again.
Initiates a TLS handshake.
If the socket is nonblocking and a `WouldBlock` error is returned during
the handshake, a `HandshakeError::WouldBlock` error will be returned
which can be used to restart the handshake when the socket is ready
again.
Initiates a TLS handshake . If the socket is nonblocking and a ` WouldBlock ` error is returned during the handshake a ` HandshakeError :: WouldBlock ` error will be returned which can be used to restart the handshake when the socket is ready again .
pub fn accept<S>(&self, stream: S) -> Result<TlsStream<S>, HandshakeError<S>>
    where
        S: io::Read + io::Write,
    {
        let s = self.0.accept(stream)?;
        Ok(TlsStream(s))
    }
pub fn accept < S > ( & self , stream : S ) -> Result < TlsStream < S > , HandshakeError < S > > where S : io :: Read + io :: Write , { let s = self . 0 . accept ( stream ) ? ; Ok ( TlsStream ( s ) ) }
Initiates a TLS handshake.
Initiates a TLS handshake .
&self
stream
S
&self
stream
S