pub trait FileTypeExt {
fn is_block_device(&self) -> bool;
fn is_char_device(&self) -> bool;
fn is_socket_dgram(&self) -> bool;
fn is_socket_stream(&self) -> bool;
fn is_socket(&self) -> bool { ... }
}
Available on WASI only.
Expand description
WASI-specific extensions for fs::FileType
.
Adds support for special WASI file types such as block/character devices, pipes, and sockets.