pub(crate) trait FromInner<Inner> {
// Required method
fn from_inner(inner: Inner) -> Self;
}Expand description
A trait for creating std types from internal representations.
Required Methods§
fn from_inner(inner: Inner) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl FromInner<(Process, StdioPipes)> for Child
impl FromInner<Stdio> for Stdio
impl FromInner<u32> for FilePermissions
impl FromInner<OwnedFd> for FileDesc
impl FromInner<Vec<u8>> for Buf
impl FromInner<FileDesc> for PipeReader
impl FromInner<FileDesc> for PipeWriter
impl FromInner<FileDesc> for ChildStderr
impl FromInner<FileDesc> for ChildStdin
impl FromInner<FileDesc> for ChildStdout
impl FromInner<FileDesc> for std::sys::fs::unix::File
impl FromInner<FileDesc> for Socket
impl FromInner<FileDesc> for std::sys::pal::unix::linux::pidfd::PidFd
Available on Linux only.
impl FromInner<Dir> for Dir
impl FromInner<File> for std::fs::File
impl FromInner<FileAttr> for Metadata
impl FromInner<FilePermissions> for Permissions
impl FromInner<TcpListener> for std::net::tcp::TcpListener
impl FromInner<TcpStream> for std::net::tcp::TcpStream
impl FromInner<UdpSocket> for std::net::udp::UdpSocket
impl FromInner<Socket> for std::sys::net::connection::socket::TcpListener
impl FromInner<Socket> for std::sys::net::connection::socket::TcpStream
impl FromInner<Socket> for std::sys::net::connection::socket::UdpSocket
impl FromInner<Buf> for OsString
impl FromInner<PidFd> for std::os::linux::process::PidFd
Available on not ((WebAssembly and non-WASI, or Fortanix and SGX)) and (Linux) only.