Function write

fn write<Fd: std::os::fd::AsFd>(fd: Fd, buf: &[u8]) -> Result<usize>

Write to a raw file descriptor.

See also write(2)