Struct command_fds::FdMapping
source · 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 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