Lines Matching +full:all +full:- +full:impls
8 //! | ---------- | ------------------------ |
16 //! - Less `unsafe` in user code!
18 //! - Easier to understand ownership.
20 //! - It avoids the inconsistency where `AsRawFd` and `IntoRawFd` return
24 //! - It enables a number of safe and portable convenience features, such as
31 // Work around https://github.com/rust-lang/rust/issues/103306.
32 #![cfg_attr(all(wasi_ext, target_os = "wasi"), feature(wasi_ext))]
80 // io-lifetimes defined `FromFd`/`IntoFd` traits instead of just using
82 // including std types like File and TcpStream, and popular third-party types.
86 // for third-party types. However, this means that until `OwnedFd` et al are
87 // stabilized, there will be no impls for third-party traits.
96 fn from_fd(owned_fd: OwnedFd) -> Self { in from_fd()
108 fn into_fd(self) -> OwnedFd { in into_fd()
118 fn from_handle(owned_handle: OwnedHandle) -> Self { in from_handle()
130 fn into_handle(self) -> OwnedHandle { in into_handle()
140 fn from_socket(owned_socket: OwnedSocket) -> Self { in from_socket()
152 fn into_socket(self) -> OwnedSocket { in into_socket()
168 // while we're prototyping, we provide a few impls on foreign types.
170 #[cfg(feature = "async-std")]
173 #[cfg(feature = "fs-err")]