Function unix_named_pipe::create [−][src]
pub fn create<P: AsRef<Path>>(path: P, mode: Option<u32>) -> Result<()>
Creates a new named pipe at the path given as path
.
Pipe will be created with mode mode
if given, else 0o644
will be used.
Examples
Without an explicit mode:
unix_named_pipe::create(file_name, None).expect("could not create fifo");
With an explicit mode:
unix_named_pipe::create(file_name, Some(0o740)).expect("could not create fifo");