Struct command_fds::FdMapping
source · pub struct FdMapping {
pub parent_fd: RawFd,
pub child_fd: RawFd,
}
Expand description
A mapping from a file descriptor in the parent to a file descriptor in the child, to be applied when spawning a child process.
The parent_fd must be kept open until after the child is spawned.
Fields§
§parent_fd: RawFd
§child_fd: RawFd
Trait Implementations§
source§impl PartialEq for FdMapping
impl PartialEq for FdMapping
impl Eq for FdMapping
impl StructuralEq for FdMapping
impl StructuralPartialEq for FdMapping
Auto Trait Implementations§
impl RefUnwindSafe for FdMapping
impl Send for FdMapping
impl Sync for FdMapping
impl Unpin for FdMapping
impl UnwindSafe for FdMapping
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