Struct procfs::process::FDInfo [−][src]
Expand description
See the Process::fd() method
Fields
fd: u32
The file descriptor
mode: mode_t
The 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: FDTarget
Implementations
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