Function unix_named_pipe::open_write [−][src]
pub fn open_write<P: AsRef<Path>>(path: P) -> Result<File>
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 withcode = 6, message = "Device not configured"
.