Skip to main content

Module owned

Module owned 

1.66.0 ยท Source
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=wasm and non-Emscripten
use 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 from BorrowedFd to the specified types.

Structsยง

BorrowedFd
A borrowed file descriptor.
OwnedFd
An owned file descriptor.

Traitsยง

AsFd
A trait to borrow the file descriptor from an underlying object.

Type Aliasesยง

ValidRawFd ๐Ÿ”’