Function open_write

Source
pub fn open_write<P: AsRef<Path>>(path: P) -> Result<File>
Expand description

Opens a named pipe for writing. The file is opened for non-blocking writes a la libc’s O_NONBLOCK.

§Examples

let file = unix_named_pipe::open_write(file_name).expect("could not open fifo for writing");

§Errors

  • If there is no pipe receiver configured when open_write is called, Err(io::ErrorKind::Other) will be returned with code = 6, message = "Device not configured".