pub async fn shutdown(&self, how: Shutdown) -> Result<()> {
        poll_fn(|cx| self.stream.poll_shutdown(cx, how))
            .await
            .map_err(Into::into)
    }
/// Shuts down the read, write, or both halves of this connection.
Shuts down the read, write, or both halves of this connection.
Shuts down the read write or both halves of this connection .
pub async fn shutdown(&self, how: Shutdown) -> Result<()> {
        poll_fn(|cx| self.stream.poll_shutdown(cx, how))
            .await
            .map_err(Into::into)
    }
pub async fn shutdown ( & self , how : Shutdown ) -> Result < ( ) > { poll_fn ( | cx | self . stream . poll_shutdown ( cx , how ) ) . await . map_err ( Into :: into ) }
Shuts down the read, write, or both halves of this connection.
Shuts down the read write or both halves of this connection .
&self
how
Shutdown
&self
how
Shutdown