Trait std::os::wasi::fs::FileTypeExt[][src]

pub trait FileTypeExt {
    fn is_block_device(&self) -> bool;
fn is_character_device(&self) -> bool;
fn is_socket_dgram(&self) -> bool;
fn is_socket_stream(&self) -> bool; }
🔬 This is a nightly-only experimental API. (wasi_ext)
This is supported on WASI only.

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) -> bool[src]

🔬 This is a nightly-only experimental API. (wasi_ext)

Returns true if this file type is a block device.

fn is_character_device(&self) -> bool[src]

🔬 This is a nightly-only experimental API. (wasi_ext)

Returns true if this file type is a character device.

fn is_socket_dgram(&self) -> bool[src]

🔬 This is a nightly-only experimental API. (wasi_ext)

Returns true if this file type is a socket datagram.

fn is_socket_stream(&self) -> bool[src]

🔬 This is a nightly-only experimental API. (wasi_ext)

Returns true if this file type is a socket stream.

Loading content...

Implementors

impl FileTypeExt for FileType[src]

Loading content...