pub fn create_fifo<P: AsRef<Path>>(path: P, mode: mode_t) -> Result<()>
Creates a FIFO file at the specified path with the specified permissions.
Since the mode parameter is masked with the umask, it’s best to leave it at 0o777 unless a different value is desired.
mode
umask
0o777
mkfifo