Function read

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

Read from a raw file descriptor.

See also read(2)