pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> Result<usize>
write(fd, buf)—Writes to a stream.
write(fd, buf)