pub struct SpawnAction<'a>(/* private fields */);
Expand description
An action to take in spawn_etc
.
Implementations§
Source§impl<'a> SpawnAction<'a>
impl<'a> SpawnAction<'a>
pub const USE_FOR_STDIO: i32 = 32_768i32
Sourcepub fn clone_fd(local_fd: BorrowedFd<'a>, target_fd: i32) -> Self
pub fn clone_fd(local_fd: BorrowedFd<'a>, target_fd: i32) -> Self
Clone a file descriptor into the new process.
local_fd
: File descriptor within the current process.
target_fd
: File descriptor within the new process that will receive the clone.
Sourcepub fn transfer_fd(local_fd: OwnedFd, target_fd: i32) -> Self
pub fn transfer_fd(local_fd: OwnedFd, target_fd: i32) -> Self
Transfer a file descriptor into the new process.
local_fd
: File descriptor within the current process.
target_fd
: File descriptor within the new process that will receive the transfer.
Sourcepub fn add_namespace_entry(prefix: &'a CStr, handle: Handle) -> Self
pub fn add_namespace_entry(prefix: &'a CStr, handle: Handle) -> Self
Add the given entry to the namespace of the spawned process.
If SpawnOptions::CLONE_NAMESPACE
is set, the namespace entry is added
to the cloned namespace from the calling process.
Sourcepub fn add_handle(kind: HandleInfo, handle: Handle) -> Self
pub fn add_handle(kind: HandleInfo, handle: Handle) -> Self
Add the given handle to the process arguments of the spawned process.
Auto Trait Implementations§
impl<'a> Freeze for SpawnAction<'a>
impl<'a> RefUnwindSafe for SpawnAction<'a>
impl<'a> !Send for SpawnAction<'a>
impl<'a> !Sync for SpawnAction<'a>
impl<'a> Unpin for SpawnAction<'a>
impl<'a> UnwindSafe for SpawnAction<'a>
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