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) -> boolReturns
trueif this file type is a block device.fn is_char_device(self: &Self) -> boolReturns
trueif this file type is a character device.fn is_socket(self: &Self) -> boolReturns
trueif this file type is any type of socket.
Implementors
impl FileTypeExt for fs::FileType