Struct procfs::process::FDInfo [−][src]
Expand description
See the Process::fd() method
Fields
fd: u32The file descriptor
mode: mode_tThe permission bits for this FD
Note: this field is only the owner read/write/execute bits. All the other bits
(include filetype bits) are masked out. See also the mode() method.
target: FDTargetImplementations
Gets a file descriptor from a raw fd
pub fn from_raw_fd_with_root(
root: impl AsRef<Path>,
pid: pid_t,
raw_fd: i32
) -> ProcResult<Self>
pub fn from_raw_fd_with_root(
root: impl AsRef<Path>,
pid: pid_t,
raw_fd: i32
) -> ProcResult<Self>
Gets a file descriptor from a raw fd based on a specified /proc path
Gets the read/write mode of this file descriptor as a bitfield
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FDInfo
impl UnwindSafe for FDInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
