#[repr(C)]pub struct es_fd_t {
pub fd: i32,
pub fdtype: u32,
pub anon_0: es_fd_t_anon_0,
}Available on macOS and crate feature
macos_11_0_0 only.Expand description
An open file descriptor
Fields§
§fd: i32File descriptor number
fdtype: u32File descriptor type, as libproc fdtype
anon_0: es_fd_t_anon_0Available if fdtype is Self::PROX_FDTYPE_PIPE
Implementations§
Source§impl es_fd_t
impl es_fd_t
Sourcepub const PROX_FDTYPE_PIPE: u32 = 6u32
pub const PROX_FDTYPE_PIPE: u32 = 6u32
Helper constant when checking if anon_0 is valid by looking at fdtype
Sourcepub unsafe fn pipe(&self) -> Option<es_fd_t_anon_0_pipe>
pub unsafe fn pipe(&self) -> Option<es_fd_t_anon_0_pipe>
Access the pipe member of es_fd_t_anon_0 if fdtype is Self::PROX_FDTYPE_PIPE.
§Safety
The fdtype and anon_0 fields must be kept in sync.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for es_fd_t
impl RefUnwindSafe for es_fd_t
impl Send for es_fd_t
impl Sync for es_fd_t
impl Unpin for es_fd_t
impl UnwindSafe for es_fd_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more