Skip to main content

write_fd

Function write_fd 

Source
pub fn write_fd(fd: RawFd, buf: &[u8]) -> Result<usize>
Expand description

Write buf to a raw fd, returning the number of bytes written.

The safe counterpart of read_fd for a non-socket fd (e.g. writing a decoded inner frame to a TUN/TAP device).