fn open_file_nonblock(path: &Path) -> Result<File> {
    OpenOptions::new()
        .custom_flags(O_NONBLOCK)
        .read(true)
        .write(true)
        .open(&path)
}
/// Create and opens a File for writing to it.
/// In case we open a FIFO, in order to not block the instance if nobody is consuming the message
/// that is flushed to the two pipes, we are opening it with `O_NONBLOCK` flag.
/// In this case, writing to a pipe will start failing when reaching 64K of unconsumed content.
Create and opens a File for writing to it.
In case we open a FIFO, in order to not block the instance if nobody is consuming the message
that is flushed to the two pipes, we are opening it with `O_NONBLOCK` flag.
In this case, writing to a pipe will start failing when reaching 64K of unconsumed content.
Create and opens a File for writing to it . In case we open a FIFO in order to not block the instance if nobody is consuming the message that is flushed to the two pipes we are opening it with ` O_NONBLOCK ` flag . In this case writing to a pipe will start failing when reaching 64K of unconsumed content .
fn open_file_nonblock(path: &Path) -> Result<File> {
    OpenOptions::new()
        .custom_flags(O_NONBLOCK)
        .read(true)
        .write(true)
        .open(&path)
}
fn open_file_nonblock ( path : & Path ) -> Result < File > { OpenOptions :: new ( ) . custom_flags ( O_NONBLOCK ) . read ( true ) . write ( true ) . open ( & path ) }
Create and opens a File for writing to it.
Create and opens a File for writing to it .
path
&Path
path
&Path