cap_std::fs_utf8

Trait FileTypeExt

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

Unix-specific extensions for FileType.

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

Required Methods§

Source

fn is_block_device(&self) -> bool

Returns true if this file type is a block device.

Source

fn is_char_device(&self) -> bool

Returns true if this file type is a character device.

Source

fn is_fifo(&self) -> bool

Returns true if this file type is a fifo.

Source

fn is_socket(&self) -> bool

Returns true if this file type is a socket.

Implementors§

Source§

impl FileTypeExt for FileType

Available on Unix or target_os="vxworks" only.