logo
pub trait FileTypeExt {
    fn is_block_device(&self) -> bool;
    fn is_char_device(&self) -> bool;
    fn is_fifo(&self) -> bool;
    fn is_socket(&self) -> bool;
}
Available on (Unix, or target_os="vxworks", or Windows and windows_file_type_ext) and (Unix or target_os="vxworks") only.
Expand description

Unix-specific extensions for FileType.

This corresponds to std::os::unix::fs::FileTypeExt.

Required Methods

Returns true if this file type is a block device.

Returns true if this file type is a character device.

Returns true if this file type is a fifo.

Returns true if this file type is a socket.

Implementors