Available on Hermit or Motor OS or Trusty or Unix or WASI only.
Expand description
Owned and borrowed Unix-like file descriptors.
Re-exportsยง
use super::raw::AsRawFd;๐use super::raw::FromRawFd;๐use super::raw::IntoRawFd;๐use super::raw::RawFd;๐use crate::alloc::Allocator;๐use crate::fs;๐Non-Trusty use crate::macros::rustdoc_skip_body;๐use crate::marker::PhantomData;๐use crate::mem::ManuallyDrop;๐use crate::sys::cvt;๐Neither Hermit, nor Motor OS, nor SGX, nor Trusty, nor target_family=wasmand non-Emscriptenuse crate::sys::AsInner;๐Non-Trusty use crate::sys::FromInner;๐Non-Trusty use crate::sys::IntoInner;๐Non-Trusty use crate::fmt;๐use crate::io;๐
Macrosยง
- impl_
is_ ๐terminal - unsafe_
impl_ ๐fd_ asrefs - Implements
AsRef<$t>conversions fromBorrowedFdto the specified types.
Structsยง
- Borrowed
Fd - A borrowed file descriptor.
- OwnedFd
- An owned file descriptor.
Traitsยง
- AsFd
- A trait to borrow the file descriptor from an underlying object.
Type Aliasesยง
- Valid
RawFd ๐