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

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

trait 表示使用 object 并获取其原始文件描述符所有权的能力。

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)