Trait std::os::wasi::fs::FileTypeExt

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 #71213)
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

???? This is a nightly-only experimental API. (wasi_ext #71213)

Returns true if this file type is a block device.

???? This is a nightly-only experimental API. (wasi_ext #71213)

Returns true if this file type is a character device.

???? This is a nightly-only experimental API. (wasi_ext #71213)

Returns true if this file type is a socket datagram.

???? This is a nightly-only experimental API. (wasi_ext #71213)

Returns true if this file type is a socket stream.

Implementors

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/wasi/fs/trait.FileTypeExt.html