Trait FileFIFOExt
Source pub trait FileFIFOExt {
// Required method
fn is_fifo(&self) -> Result<bool>;
}
Expand description
Definitions for std::fs::File
extensions for FIFOs
Returns a wrapped boolean to designate if the underlying
file is a FIFO device.
§Examples
use unix_named_pipe::*;
let file = open_read(file_name).expect("could not open fifo for reading");
assert_eq!(file.is_fifo().unwrap(), true);