Trait FileTypeExt

trait FileTypeExt

WASI-specific extensions for fs::FileType.

Adds support for special WASI file types such as block/character devices, pipes, and sockets.

Required Methods

fn is_block_device(self: &Self) -> bool

Returns true if this file type is a block device.

fn is_char_device(self: &Self) -> bool

Returns true if this file type is a character device.

fn is_socket(self: &Self) -> bool

Returns true if this file type is any type of socket.

Implementors