Type Alias rustix::process::ForeignRawFd

source ·
pub type ForeignRawFd = RawFd;
Expand description

Raw file descriptor in another process.

A distinct type alias is used here to inform the user that normal file descriptors from the calling process should not be used. The provided file descriptor is used by the kernel as the index into the file descriptor table of an entirely different process.

Trait Implementations§

1.48.0 · source§

impl AsRawFd for i32

source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
1.48.0 · source§

impl FromRawFd for i32

source§

unsafe fn from_raw_fd(fd: i32) -> i32

Constructs a new instance of Self from the given raw file descriptor. Read more
1.48.0 · source§

impl IntoRawFd for i32

source§

fn into_raw_fd(self) -> i32

Consumes this object, returning the raw underlying file descriptor. Read more