Trait std::os::wasi::io::AsRawFd[][src]

pub trait AsRawFd {
    fn as_raw_fd(&self) -> RawFd;
}
🔬 This is a nightly-only experimental API. (wasi_ext #71213)
This is supported on WASI only.
Expand description

trait,用于从基础 object 提取原始 WASI 文件描述符。

Required methods

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

提取原始文件描述符。

此方法不会将原始文件描述符的所有权传递给调用方。 仅当原始 object 尚未销毁时,才保证描述符是有效的。

Implementors

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