Struct PosixSpawnFileActions

#[repr(transparent)]
pub struct PosixSpawnFileActions { /* private fields */ }

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) -> 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(&mut self, fd: RawFd, newfd: RawFd) -> Result<()>

Add a dup2 action. See posix_spawn_file_actions_adddup2.

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

Add an open action. See posix_spawn_file_actions_addopen.

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

Add a close action. See posix_spawn_file_actions_addclose.

Trait Implementations

impl Debug for PosixSpawnFileActions

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

impl Drop for PosixSpawnFileActions

fn drop(&mut self)

Auto Trait Implementations

impl !Send for PosixSpawnFileActions

impl !Sync for PosixSpawnFileActions

impl Freeze for PosixSpawnFileActions

impl RefUnwindSafe for PosixSpawnFileActions

impl Unpin for PosixSpawnFileActions

impl UnsafeUnpin for PosixSpawnFileActions

impl UnwindSafe for PosixSpawnFileActions

Blanket Implementations

impl<T> Any for PosixSpawnFileActions where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for PosixSpawnFileActions where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for PosixSpawnFileActions where T: ?Sized,

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

impl<T> From<T> for PosixSpawnFileActions

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for PosixSpawnFileActions where U: From<T>,

fn into(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<U> for PosixSpawnFileActions where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for PosixSpawnFileActions where U: TryFrom<T>,

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