Struct PosixSpawnFileActions

struct PosixSpawnFileActions { ... }

A spawn file actions object. See posix_spawn_file_actions_t.

Implementations

impl PosixSpawnFileActions

fn init() -> Result<PosixSpawnFileActions>

Initialize the spawn file actions object. See posix_spawn_file_actions_init.

fn reinit(self: 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.

fn add_dup2(self: &mut Self, fd: RawFd, newfd: RawFd) -> Result<()>

Add a dup2 action. See posix_spawn_file_actions_adddup2.

fn add_open<P: ?Sized + NixPath>(self: &mut Self, fd: RawFd, path: &P, oflag: OFlag, mode: Mode) -> Result<()>

Add an open action. See posix_spawn_file_actions_addopen.

fn add_close(self: &mut Self, fd: RawFd) -> Result<()>

Add a close action. See posix_spawn_file_actions_addclose.

impl Debug for PosixSpawnFileActions

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Drop for PosixSpawnFileActions

fn drop(self: &mut Self)

impl Freeze for PosixSpawnFileActions

impl RefUnwindSafe for PosixSpawnFileActions

impl Send for PosixSpawnFileActions

impl Sync for PosixSpawnFileActions

impl Unpin for PosixSpawnFileActions

impl UnsafeUnpin for PosixSpawnFileActions

impl UnwindSafe for PosixSpawnFileActions

impl<T> Any for PosixSpawnFileActions

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PosixSpawnFileActions

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PosixSpawnFileActions

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for PosixSpawnFileActions

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for PosixSpawnFileActions

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PosixSpawnFileActions

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PosixSpawnFileActions

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>