pub struct FdMapping {
pub parent_fd: OwnedFd,
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.
This takes ownership of the parent_fd
to ensure that it is kept open until after the child is
spawned.
Fields§
§parent_fd: OwnedFd
§child_fd: RawFd
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FdMapping
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