pub fn shutdown(&self, how: Shutdown) -> Result<(), io::Error> {
        match &self.stream {
            Stream::Tcp(s) => s.shutdown(how),
            #[cfg(unix)]
            Stream::Unix(s) => s.shutdown(how),
        }
    }
/// Shuts down the read, write, or both halves of this connection.
///
/// This function will cause all pending and future I/O calls on the
/// specified portions to immediately return with an appropriate value
/// (see the documentation of Shutdown).
Shuts down the read, write, or both halves of this connection.
This function will cause all pending and future I/O calls on the
specified portions to immediately return with an appropriate value
.
Shuts down the read write or both halves of this connection . This function will cause all pending and future I / O calls on the specified portions to immediately return with an appropriate value .
pub fn shutdown(&self, how: Shutdown) -> Result<(), io::Error> {
        match &self.stream {
            Stream::Tcp(s) => s.shutdown(how),
            #[cfg(unix)]
            Stream::Unix(s) => s.shutdown(how),
        }
    }
pub fn shutdown ( & self , how : Shutdown ) -> Result < ( ) , io :: Error > { match & self . stream { Stream :: Tcp ( s ) => s . shutdown ( how ) , # [ cfg ( unix ) ] Stream :: Unix ( s ) => s . shutdown ( how ) , } }
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