pub struct PosixSpawnFileActions { /* private fields */ }Available on crate feature
process only.Expand description
A spawn file actions object. See posix_spawn_file_actions_t.
Implementations§
Source§impl PosixSpawnFileActions
impl PosixSpawnFileActions
Sourcepub fn init() -> Result<PosixSpawnFileActions>
pub fn init() -> Result<PosixSpawnFileActions>
Initialize the spawn file actions object. See posix_spawn_file_actions_init.
Sourcepub fn reinit(self) -> Result<PosixSpawnFileActions>
pub fn reinit(self) -> Result<PosixSpawnFileActions>
Reinitialize the spawn file actions object. This is a wrapper around posix_spawn_file_actions_destroy. followed by posix_spawn_file_actions_init.
Sourcepub fn add_dup2(&mut self, fd: RawFd, newfd: RawFd) -> Result<()>
pub fn add_dup2(&mut self, fd: RawFd, newfd: RawFd) -> Result<()>
Add a dup2 action. See posix_spawn_file_actions_adddup2.
Trait Implementations§
Source§impl Debug for PosixSpawnFileActions
impl Debug for PosixSpawnFileActions
Source§impl Drop for PosixSpawnFileActions
impl Drop for PosixSpawnFileActions
Auto Trait Implementations§
impl Freeze for PosixSpawnFileActions
Available on Unix only.
impl RefUnwindSafe for PosixSpawnFileActions
Available on Unix only.
impl !Send for PosixSpawnFileActions
Available on Unix only.
impl !Sync for PosixSpawnFileActions
Available on Unix only.
impl Unpin for PosixSpawnFileActions
Available on Unix only.
impl UnsafeUnpin for PosixSpawnFileActions
Available on Unix only.
impl UnwindSafe for PosixSpawnFileActions
Available on Unix only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more