cap_std::fs

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;
}
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§