Function rustix::net::shutdown

pub fn shutdown<Fd: AsFd>(sockfd: &Fd, how: Shutdown) -> io::Result<()>
Documentation

shutdown(fd, how)—Closes the read and/or write sides of a stream.

References