pub struct ProcessConfig { /* private fields */ }
Expand description
Configuration for launching a new process in the mesh.
Implementations§
Source§impl ProcessConfig
impl ProcessConfig
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Returns new process configuration using the current process as the process name.
Sourcepub fn new_with_sandbox(
name: impl Into<String>,
sandbox_profile: Box<dyn SandboxProfile + Sync>,
) -> Self
pub fn new_with_sandbox( name: impl Into<String>, sandbox_profile: Box<dyn SandboxProfile + Sync>, ) -> Self
Returns a new process configuration using the current process as the process name.
Sourcepub fn process_name(self, name: impl Into<PathBuf>) -> Self
pub fn process_name(self, name: impl Into<PathBuf>) -> Self
Sets the process name.
Sourcepub fn skip_worker_arg(self, skip: bool) -> Self
pub fn skip_worker_arg(self, skip: bool) -> Self
Specifies whether to appending <node name>
to the process’s command
line.
This is done by default to make it easier to identify the process in task lists, but if your process parses the command line then this may get in the way.
Auto Trait Implementations§
impl Freeze for ProcessConfig
impl !RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl !UnwindSafe for ProcessConfig
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