Struct fdio::SpawnBuilder
source · 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 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