pub fn shutdown(&mut self) -> io::Result<()> {
        match self.0.shutdown() {
            Ok(_) => Ok(()),
            Err(ref e) if e.code() == ssl::ErrorCode::ZERO_RETURN => Ok(()),
            Err(e) => Err(e
                .into_io_error()
                .unwrap_or_else(|e| io::Error::new(io::ErrorKind::Other, e))),
        }
    }
/// Shuts down the TLS session.
Shuts down the TLS session.
Shuts down the TLS session .
pub fn shutdown(&mut self) -> io::Result<()> {
        match self.0.shutdown() {
            Ok(_) => Ok(()),
            Err(ref e) if e.code() == ssl::ErrorCode::ZERO_RETURN => Ok(()),
            Err(e) => Err(e
                .into_io_error()
                .unwrap_or_else(|e| io::Error::new(io::ErrorKind::Other, e))),
        }
    }
pub fn shutdown ( & mut self ) -> io :: Result < ( ) > { match self . 0 . shutdown ( ) { Ok ( _ ) => Ok ( ( ) ) , Err ( ref e ) if e . code ( ) == ssl :: ErrorCode :: ZERO_RETURN => Ok ( ( ) ) , Err ( e ) => Err ( e . into_io_error ( ) . unwrap_or_else ( | e | io :: Error :: new ( io :: ErrorKind :: Other , e ) ) ) , } }
Shuts down the TLS session.
Shuts down the TLS session .
&mut self
&mut self