pub struct SpawnBuilder { /* private fields */ }
Expand description
Convience wrapper for spawn_etc
.
Implementations§
Source§impl SpawnBuilder
impl SpawnBuilder
Sourcepub fn options(self, options: SpawnOptions) -> Self
pub fn options(self, options: SpawnOptions) -> Self
Set the SpawnOptions
.
Sourcepub fn add_dir_to_namespace(
self,
path: impl Into<String>,
dir: File,
) -> Result<Self, Error>
pub fn add_dir_to_namespace( self, path: impl Into<String>, dir: File, ) -> Result<Self, Error>
Add a directory that will be added to the spawned process’s namespace.
Sourcepub fn add_directory_to_namespace(
self,
path: impl Into<String>,
client_end: ClientEnd<DirectoryMarker>,
) -> Result<Self, Error>
pub fn add_directory_to_namespace( self, path: impl Into<String>, client_end: ClientEnd<DirectoryMarker>, ) -> Result<Self, Error>
Add a directory that will be added to the spawned process’s namespace.
Sourcepub fn spawn_from_path(
self,
path: impl Into<String>,
job: &Job,
) -> Result<Process, Error>
pub fn spawn_from_path( self, path: impl Into<String>, job: &Job, ) -> Result<Process, Error>
Spawn a process from the binary located at path
.
pub fn spawn_from_path_impl( self, path: String, job: &Job, ) -> Result<Process, Error>
Trait Implementations§
Source§impl Default for SpawnBuilder
impl Default for SpawnBuilder
Source§fn default() -> SpawnBuilder
fn default() -> SpawnBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpawnBuilder
impl RefUnwindSafe for SpawnBuilder
impl Send for SpawnBuilder
impl Sync for SpawnBuilder
impl Unpin for SpawnBuilder
impl UnwindSafe for SpawnBuilder
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